Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

History

Status
Not open for further replies.

5888

Programmer
Apr 27, 2003
16
MY
Hello there. Is there anyway to clear the IE History, Cookies, Temporary Internet Files, Documents and Run? Any API available to clear these? Thank you.
 
Hiya 5888,

Possibly, but we have you already -, so don't waste your time wiping it all ;-) .

Darrylle

"Never argue with an idiot, he'll bring you down to his level - then beat you with experience." darrylles@totalise.co.uk
 
Darrylles,

Actually I am trying to write a program that can do these kind of housekeeping for my PCs. I do not want to go and do housekeeping for each and every PC. :~/
 
you can configure the browser to clear temporary internet files when it closes. i dont know on the others though
 
clear = delete

actually as a guy who likes to do server-side stuff, im opposed to deleting cookies. in fact on the site i made if you delete your cookies you have to choose a new logon name next time.
 
How about kill "C:\Windows\history\*"
kill "C:\Windows\cookies\*"
Etc...

Warning: Be careful, and I haven't tried this out so oyu may need to tweak it.

If you don't know, don't try it.
 
There's a utility called tweakui. It will do most of the things you describe, but I'm not sure about deleting cookies. As far as I know there's no OCX's to incorporate it into a VB program, but you can set it to clear urls, document history, run history, etc.. at logon. Plus a bunch of other stuff. Here's the url...


Dave
 
I am not sure the internet history folders are what they purport to be. If you look at the folders and delete in certain folders they remain in others, not duplicated but it looks that way. When I use explorer to delete history I usually have to hit files twice and end-up removing whole folders in anger. I don't see the syntax of folder naming either, even though it is a date code of some sort.
I use a system clean-up app - it is easier.

Not tried it from VB

try fred = Dir(known name of file) and see if it finds it, if it does it will probably delete it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top