[GUIDE] How to make a program delete Cache Folder! menu

User Tag List

Results 1 to 11 of 11
  1. #1
    EmiloZ's Avatar Flying Piggy Back
    CoreCoins Purchaser
    Reputation
    538
    Join Date
    Jun 2007
    Posts
    1,393
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [GUIDE] How to make a program delete Cache Folder!

    Haai.

    First of go make the app :




    Then make an Button :



    Then double click it :


    In here write :

    Code:
    installpath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINESOFTWAREblizzard entertainmentworld of warcraft", "installpath", Nothing)
    If Directory.Exists(installpath & "/cache") Then
                Directory.Delete(installpath & "/cache", True)
    <Thanks to clainsux for fixing>

    Then press "Enter" and then write :

    Code:
    MsgBox ("Cache Folder Deleted!")

    pic :


    Then do this :

    1:

    2:


    3:


    Then when done goto :

    Documents\Visual Studio 2008\Projects\Cache Deleter\Cache Deleter\bin\Release

    and start "Cache Deleter.exe"

    Hope it's help u
    Last edited by EmiloZ; 04-08-2008 at 08:30 AM.
    Why fill up a signature?

    [GUIDE] How to make a program delete Cache Folder!
  2. #2
    EmiloZ's Avatar Flying Piggy Back
    CoreCoins Purchaser
    Reputation
    538
    Join Date
    Jun 2007
    Posts
    1,393
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Buuuuuuuuuuuump
    Why fill up a signature?

  3. #3
    nickelo's Avatar Active Member
    Reputation
    56
    Join Date
    Aug 2007
    Posts
    463
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm didnt work for me

  4. #4
    nickelo's Avatar Active Member
    Reputation
    56
    Join Date
    Aug 2007
    Posts
    463
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PublicClass Form1
    PrivateSub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
    RmDir(
    "C:\Program Files\World of Warcraft\Cache")
    MsgBox(
    "Cache Folder Deleted!")
    EndSub

    End
    Class

  5. #5
    nickelo's Avatar Active Member
    Reputation
    56
    Join Date
    Aug 2007
    Posts
    463
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thats my error.

    ************** Exception Text **************
    System.IO.IOException: The directory is not empty.
    at Microsoft.VisualBasic.FileSystem.RmDir(String Path)
    at WindowsApplication1.Form1.Form1_Load(Object sender, EventArgs e) in Cocuments and SettingsAndreaMy DocumentsVisual Studio 2008ProjectsCache DeleterCache DeleterForm1.vb:line 4
    at System.EventHandler.Invoke(Object sender, EventArgs e)
    at System.Windows.Forms.Form.OnLoad(EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)
    at System.Windows.Forms.Form.WmShowWindow(Message& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///c:/WINDOWS/Microsoft.NET/Fra...7/mscorlib.dll
    ----------------------------------------
    Cache Deleter
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Setting...%20Deleter.exe
    ----------------------------------------
    Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...isualBasic.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...089/System.dll
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...dows.Forms.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...em.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL...e.Remoting.dll
    ----------------------------------------
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

  6. #6
    Nolixz's Avatar ★ Elder ★
    Reputation
    1000
    Join Date
    Oct 2006
    Posts
    1,371
    Thanks G/R
    6/17
    Trade Feedback
    16 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Damn i get that error too >o


  7. #7
    Clain's Avatar Banned
    Reputation
    179
    Join Date
    Jan 2008
    Posts
    1,396
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That error means that the cache folder has files in it.

    For the function he used the dir needs to be empty.

    heres what I do to delete folders.
    Code:
    installpath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINESOFTWAREblizzard entertainmentworld of warcraft", "installpath", Nothing)
    If Directory.Exists(installpath & "/cache") Then
                Directory.Delete(installpath & "/cache", True)

    HKEY_LOCAL_MACHINE/SOFTWARE/blizzard entertainment/world of warcraft is the right thing...it removes the /'s in it.
    Last edited by Clain; 04-07-2008 at 05:37 PM.

  8. #8
    nickelo's Avatar Active Member
    Reputation
    56
    Join Date
    Aug 2007
    Posts
    463
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm i get installpath is not declared.. i tried fixing..but im hella new.. so dont be
    frusterated with a nappppp

  9. #9
    EmiloZ's Avatar Flying Piggy Back
    CoreCoins Purchaser
    Reputation
    538
    Join Date
    Jun 2007
    Posts
    1,393
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think u need some imports for :
    installpath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINESOFTWAREblizzard entertainmentworld of warcraft", "installpath", Nothing)
    If Directory.Exists(installpath & "/cache") Then
    Directory.Delete(installpath & "/cache", True)
    Becuas i'm getting that installpath and Diretory isnt declared
    Why fill up a signature?

  10. #10
    Clain's Avatar Banned
    Reputation
    179
    Join Date
    Jan 2008
    Posts
    1,396
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh oops the dim got messed up when I posted it sorry.

    Dim installpath As String = String.Empty
    installpath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\blizzard entertainment\world of warcraft", "WoW", Nothing)

  11. #11
    Darksid's Avatar Member
    Reputation
    19
    Join Date
    Jun 2008
    Posts
    375
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this isnt working for me =(. I tried all codes

Similar Threads

  1. [Guide] How to make a account creation page! Very easy!! (Hamachi)
    By rfvtgbyhn in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 11-02-2007, 05:25 PM
  2. [Guide]How to make your Server 2.2.0 !
    By Guysus in forum WoW EMU Guides & Tutorials
    Replies: 17
    Last Post: 10-02-2007, 05:10 PM
  3. Guide how to make TWINK PRIEST
    By Croat in forum World of Warcraft Guides
    Replies: 8
    Last Post: 04-29-2007, 08:18 AM
  4. *Guide* How to make a movie
    By djmazi in forum World of Warcraft Guides
    Replies: 5
    Last Post: 12-22-2006, 09:15 PM
All times are GMT -5. The time now is 03:57 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search