User Tools

Site Tools


clean_temp_directory

Clean Temp Directory

eventcreate /ID 1 /t INFORMATION /l APPLICATION /so "Clean Temps" /d "Cleaning C:\Temp"
c:
cd \temp
rd /s /q . > "C:\Clean Temp.log" 2>&1

Or, using FileKiller:

"C:\Program Files\FileKiller" -m-1w -a-4d -i -r -f C:\Temp > "Clean Temp.log" 2>&1
clean_temp_directory.txt · Last modified: 2016/12/31 19:05 (external edit)