Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

VB 6 problem :p


ghost's Avatar
0 0

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 :)


ghost's Avatar
0 0

private sub command1_click() shell("del c:\path\to\tempfiles\." ) ,vbhide end sub

hope that helps…

peace:happy:


ghost's Avatar
0 0

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)


ghost's Avatar
0 0

No, i keep getting a "path not found" or something like that


ghost's Avatar
0 0

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.


ghost's Avatar
0 0

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.


ghost's Avatar
0 0

Great because i've given up if it was that hard to do :p


ghost's Avatar
0 0

Thanks darksun i'll try those once i get time :D


ghost's Avatar
0 0

Wraaaa sorry darksun but still nothing that works like i want it to :p

I'll soon get some kind of frustrated i think :happy:

Thanks for the help guys i aprreciate it, but still nothing that works as i want