- This topic has 7 replies, 3 voices, and was last updated 18 years ago by Admin.
-
AuthorPosts
-
November 14, 2005 at 9:34 pm #189204DarkCoderMember
hey does anyone have a code to delete history/cookies/temp internet files… i’ve been trying to write one, but it keeps deleting part of the files and not all of them.. lmfao
November 15, 2005 at 3:26 am #189211AdminAdministratorI found a graet code ib planet source I will get it for you by tomorrow 🙂
November 15, 2005 at 3:49 am #189210rattled_CageMemberive used this delete a few times
but be carefull 🙂hence the test folder !
Sub Command1_Click()
Dim TempDir As String
TempDir = “C:TEST”
Nuke TempDir
End SubC:TEST MAKE THIS dont make mistakes 🙂
Sub Nuke(DirName As String)
Const ATTR_NORMAL = 0
Const ATTR_DIRECTORY = 16Dim OriginalDir, FileName, NextFileName As String
OriginalDir = CurDir$
ChDir DirName
FileName = Dir$(“*.*”, ATTR_NORMAL)
Do While FileName “”
Kill FileName
FileName = Dir$
LoopDo
FileName = Dir$(“*.*”, ATTR_DIRECTORY)
While FileName = “.” Or FileName = “..”
FileName = Dir$
WendIf FileName = “” Then Exit Do
Nuke (FileName)
LoopChDir OriginalDir
RmDir DirName <<<<<< removes the folder ! if u like
End SubNovember 15, 2005 at 3:35 pm #189209AdminAdministratorTha looks good, but the code i use for my ban remover works great lol I just cant find where I find it, lol damn I keep on checking
November 15, 2005 at 9:04 pm #189208AdminAdministratorhmmm dont see the point of deleting theses if for paltalk that is paltalk does put anything in there.
November 16, 2005 at 4:36 am #189207DarkCoderMemberhm.. the above is a good code to delete the “files” within the folder. However, if there is another folder inside the “main” folder, then the code will probally crash and get a runtime error or something like that.
November 16, 2005 at 6:26 am #189206rattled_CageMemberPrivate Sub Command1_Click()
On Error Resume Next
Kill (“c:test*.*”)
Kill (“C:testtest1*.*”)
Kill (“C:testTest2*.*”)
Kill (“C:testtest3*.*”)
End Sub😯 deletes files inside and leaves the folders alone
make all the test folders and watch them go 🙂
November 16, 2005 at 9:53 am #189205AdminAdministratorna dont work…. you still have the index.dat that stops it from being deleted.
-
AuthorPosts
Related
- You must be logged in to reply to this topic.