Windows XP Clean Cache

General Network security, firewalls, port filtering/forwarding, wireless security, anti-spyware, as well as spam control and privacy discussions.
Post Reply
User avatar
fredra
Advanced Member
Posts: 847
Joined: Mon Mar 20, 2000 12:00 am
Location: Nepean, On, Canada

Windows XP Clean Cache

Post by fredra »

Hi folks
I was tired of cleaning IE cache so in searching I found this. You can copy it to a text file and into your startup folder and name it 'cleanupxp.cmd as stated below. It does work under XP, but may not work with W2K. If anyone is looking for the W2K version I will try to find it.
Cheers
-----------------------------------------------------
rem WinXP, cleans cookies, cache, temp, history, index.dat
rem put in startup folder and it'll clean each time upon logging in
rem save to text file named something like cleanxp.cmd
rem to clean index.dat files must logoff completely. Switch users wont' cut it.
rem ****
@echo on
cd %homedrive%%homepath%
rd /s/q locals~1\tempor~1
rd /s/q locals~1\temp\tempor~1
rd /s/q cookies
rd /s/q temp\cookies
rd /s/q locals~1\history
rd /s/q locals~1\temp\history
rd /s/q recent
md recent
rd /s/q locals~1\temp
md locals~1\temp
------------------------------------------------------------------
A man with a watch knows what time it is. A man with two watches is never sure.
Post Reply