===== 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 {{tag>code_snippet msdos batch_file}}