Results 1 to 12 of 12
  1. #1
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276

    Red face [TuT] a very easy way to delete files for noobs.

    Just thought i would help out some people
    heres a very easy way to delete a file.
    Code:
    Kill("C:\%Folder_Name%\FILE_Name.*extension")
    or to delete all files in a folder

    Code:
    Kill("C:\%Folder_Name%\*.*")
    See! Easy!

  2. The Following 6 Users Say Thank You to XGelite For This Useful Post:

    ĎÁŗҚ ĉҰρҢềŔ (10-11-2009),ac1d_buRn (10-21-2009),CounterAct (11-14-2009),godofnade (10-20-2009),guza44_44 (11-03-2009),Nitehawk772 Bkup (10-22-2011)

  3. #2
    godofnade's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    I do apologize for my extreme nubness..

    Is there a general profile reference like this logic:

    Kill ("%userprofile%\cookies\*.*")
    Kill ("%userprofile%\temp~1\*.*")
    Kill ("%userprofile%\tempor~1\*.*")

    Also, is there a way to include all paths into one string? again.. I do apologize for my stupidity. I just started reading into vb. I wanted to make a basic cleaner with a progress bar. Alittle assistance would be most appreciated thx guys.

  4. #3
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Thanks man
    Helped me.!

  5. #4
    Threadstarter
    Synthetic Hacker
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Quote Originally Posted by godofnade View Post
    I do apologize for my extreme nubness..

    Is there a general profile reference like this logic:

    Kill ("%userprofile%\cookies\*.*")
    Kill ("%userprofile%\temp~1\*.*")
    Kill ("%userprofile%\tempor~1\*.*")

    Also, is there a way to include all paths into one string? again.. I do apologize for my stupidity. I just started reading into vb. I wanted to make a basic cleaner with a progress bar. Alittle assistance would be most appreciated thx guys.
    yes %userprofile% is the path to the current profile. it doesnt work with the kill command though.

    to delete temp you would do this-
    Code:
     System.IO.File.SetAttributes("C:\Windows\Temp\*.*", System.IO.FileAttributes.Normal) ' changes read only files in Windows temporary folder to attribute normal
    
    Kill("C:\Windows\Temp\*.*") " deletes windows temp files
    to delete windows temporary history -

    Code:
    Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 8")
    to delete history -

    Code:
    Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 1")
    to delete cookies -
    Code:
    Process.Start("rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 2")
    Last edited by XGelite; 10-21-2009 at 08:27 AM.

  6. #5
    godofnade's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    wow thanks a million XGelite. So its more of taking advantage of IE's already made deletion feature rather create your own path. Very interesting!

    +Kudos!

  7. #6
    Threadstarter
    Synthetic Hacker
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Quote Originally Posted by godofnade View Post
    wow thanks a million XGelite. So its more of taking advantage of IE's already made deletion feature rather create your own path. Very interesting!

    +Kudos!
    your welcome

  8. #7
    LetItRock's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    20
    Reputation
    9
    Thanks
    0
    ok so i am creating a multi tool and i put this code in
    Code:
    Kill("C:\Nexon\Combat Arms\ & *.TMP")
    is that correct?

  9. #8
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Quote Originally Posted by LetItRock View Post
    ok so i am creating a multi tool and i put this code in
    Code:
    Kill("C:\Nexon\Combat Arms\ & *.TMP")
    is that correct?
    No, Correct would be:

    Code:
    Kill("C:\Nexon\Combat Arms\*.TMP")
    But what happens if there is no temp file? The program will crash.
    So you will need to put an error proventing system on it.

    I chose to do:

    Code:
    On Error Resume Next (i think thats it)
    Kill("C:\Nexon\Combat Arms\*.extention")
    And that will stop the program from crashing (:

    Thanks me :P

  10. #9
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    I should use:
    Code:
         Try
    Kill("C:\Nexon\Combat Arms\*.TMP")
    
            Catch ex As Exception
    msgbox("Failed")
            End Try
    -Rest in peace leechers-

    Your PM box is 100% full.

  11. #10
    ark1227's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    I should know this...
    Posts
    110
    Reputation
    10
    Thanks
    7
    My Mood
    Devilish
    but what if i want to delete the directory itself??? along with all the files...?

    then wat wd the code be for that?

  12. #11
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Code:
    My.Computer.FileSystem.DeleteDirectory("C:\.........", FileIO.DeleteDirectoryOption.DeleteAllContents)
    Or something like that!
    -Rest in peace leechers-

    Your PM box is 100% full.

  13. The Following User Says Thank You to Zoom For This Useful Post:

    ark1227 (11-02-2009)

  14. #12
    ark1227's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    I should know this...
    Posts
    110
    Reputation
    10
    Thanks
    7
    My Mood
    Devilish
    o lol.... thanks!

    im gna try it and post the results... THANKS!

    EDIT - yo wrd bro... it actually wrks... *props*
    Last edited by ark1227; 11-02-2009 at 05:33 PM. Reason: results

Similar Threads

  1. Easy way to login faster for Silkroad
    By demolish145 in forum Silkroad Online Hacks & Cheats
    Replies: 5
    Last Post: 11-01-2010, 06:04 AM
  2. Replies: 129
    Last Post: 09-27-2009, 02:21 PM
  3. Replies: 34
    Last Post: 03-16-2009, 09:16 AM
  4. Easy way to get money for vip
    By liller90 in forum Combat Arms Hacks & Cheats
    Replies: 7
    Last Post: 11-08-2008, 07:47 PM

Tags for this Thread