The date and time was 5/24/2008 5:16 PM, and on a whim, Bill Cunningham
pounded out on the keyboard:
What is safe to delete in xp mce's temp directory? The files there? The
contents of directories like content.ie5 ? I want to get the cookies and
history and garbage files left behind out of the temp directory.
Bill
Hi Bill,
Since Win98 came out, I've been using a DOS program called DELTREE and a
simple batch file with a shortcut placed in the Startup folder to clean
client machines. You can download the file here:
http://terrikaduck.netfirms.com/deltree.htm
Here are the lines needed to have your temp folders cleaned each time
you boot your computer:
:: Cleans out temp files on Startup
<path>\deltree.exe /y %temp%
<path>\deltree.exe /y %tmp%
where <path> is the location you store the file (c:\util).
Save the file in Notepad called "cleantmp.bat". Use the quotes in case
you have extensions hidden or you will wind up with a file named
"cleantmp.bat.txt".
You can use the DEL command without downloading any file, but the
problem is that this method doesn't remove empty folders:
del /s /q %temp%\*.*
del /s /q %tmp%\*.*
You can also remove and create the folders using the RD command:
RD /s /q %temp%
RD /s /q %tmp%
MD %temp%
MD %tmp%
I have my TEMP & TMP folders point to the same location, so I only need
one line.
Remember you want this happening at Startup, so put either the
cleantmp.bat file or a shortcut to it in the Startup folder. It's
automatic and easy.
--
Terry R.
***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.