Link to home
Start Free TrialLog in
Avatar of IT CAMPER
IT CAMPERFlag for United States of America

asked on

Need a script that will delete a users Internet temp folder on Windows 2000 and XP

I have been noticing more often that viruses are being found in the Internet temp folder located at c:\documents and settings\%username%\local settings\temporay internet files.  I would like to have a script that can be executed either by scheduled events or by logon/logoff that deletes all of the files located in that folder.  Can someone give me a complete script solution to do this?  
Avatar of dev8
dev8

Hello,

Have you tried Disk Cleanup?  You can add that as a scheduled task to run every day if you need it that way.  It would be more easier than having to write a script of some sort.

Hope that helps!

//j
Avatar of IT CAMPER

ASKER

dev8..can you run that task with switches so that it does not prompt the user for anything?  I am looking for a fast, simple, transparent solution that the user does not even know is working in the background.
ASKER CERTIFIED SOLUTION
Avatar of dev8
dev8

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi
PAQ on the subject here - worth a look courtesy of Pete Long et al,

Solution Title: Batch file to delete temporary internet files and others
http:Q_20794666.html

Deb :))
Avatar of Lee W, MVP
Why not just configure outlook to Empty Temporary Internet Files when browser is closed? - Internet Control panel, near the end of the options listed under "Advanced" tab