Deleting Temporary Internet files

How can I delete Temporary Internet Files using Visual Basic 6?
Thanks
cheerio79Asked:
Who is Participating?
 
mjmanikandanConnect With a Mentor Commented:
It can be done by using WinInet APIs:
(1)FindFirstUrlCacheEntry,
(2)FindNextUrlCacheEntry,
(3)DeleteUrlCacheEntry,
(4)FindCloseUrlCache.

--Use function1 first
--then until the last cach entry (using function4)
--------------use function2 and delete using function3

Instead of CacheEntry u can also use CacheGroup

If u know vc++ u can visit the site
http://www.codeguru.com/ieprogram/DeleteTemps.shtml (this might not load at first go, so try refreshing 2 or 3 times)

Best Rgds
Mani
0
 
HeldeCommented:
Hi cheerio79, the easiest way should be to build a simple program that deletes files older than a certain date in a folder(Temporary Internet Files), or all files in a folder.
0
 
FaithRavenCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept mjmanikandan's comment
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

FaithRaven
EE Cleanup Volunteer
0
All Courses

From novice to tech pro — start learning today.