
The script below cleans folder named 'C:\Temp' and makes it default temp folder for those applications who use the folder given in TEMP variable:
@ECHO Cleaning temporary folder...
DEL /S /Q /F C:\TEMP > NUL
SET TMP=C:\TEMP
SET TEMP=C:\TEMP
SET PKTMP=C:\TEMP
@ECHO Temporary folder is cleaned
If you want to clean also Windows default temp folder, you should also add line with 'DEL' for 'c:\Documents and Settings\Your User Name\Local Settings\Temp' (for Windows XP). Of course, the simplest way to modify this batch script is using Dr.Batcher.
No comments:
Post a Comment