VB 6 problem :p
Somebody who have got some (working :p) code for deleting the Temporary Internet Files in Microsoft Internet Explorer? (vers. 6 if you need that too)
I've searched on google and google groups and whatever Visual Basic 6 programming forum i could find but nowhere people knew how to delete those files they only describe that it was an index.dat file instead of a normal folder or something, but maybe one of a bunch of hackers would know xD
Don't ask why i need it got my own little stupid nooby first-useful-real-program idea which is not worth an explaination :p
Please help thanks tell me if you need to know more to help me sort this one out :)
Thanks for the try, but it didnt work.. :angry: I have tried that kind of commands like kill "C:/and-then-the-path" and some other, but i found out quite fast, that its not a normal folder they're hid in, its an index.dat file or something :/
(i am kindda nooby but you proberbly already figured that out xD)
zeke9001 wrote: Hmm , if u keep getting Access Denied or "cant delete file file is in use" then safe mode it or linux'ize dat shit! (sounds like u could giva 1/2 a shit bout the prog and U just want the files gone) GL
–ZeKé
Surprisingly, Linux isnt the solution to every fricken problem a programmer has. VB6 is for Windows anyways.
try these examples: example1:
private sub command1_click()
dim FileSystemObject as Object set FileSystemObject = CreateObject("Scripting.FileSystemObject" ) FileSystemObject.DeleteFile "c:\path\to\file\*.txt end sub
example2:
private sub command1_click() dim FileSystemObject, FileObject as Object set FileSystemObject = CreateObject("Scripting.FileSystemObject" ) set FileObject = FileSystemObject.GetFile("C:\path\to\file.txt" ) FileObject.Delete end sub
if you still get errors or something… there are other ways :P good luck with it…
darksun.