Avatar of Noah Williams
Noah Williams

asked on 

Need a script to delete all files older than 3 days from C:\windows\temp on Windows 2008R2 server

I need to write a script to run as a regular task, most likely from Task Scheduler script that will delete all files from the C:\Windows\temp directory that are older than 3 days. Can anyone assist with how to write that given the "older than" or time relationship needed? I'm thinking it would delete anything older than the current time... How would that be written?
ProgrammingWindows BatchScripting Languages

Avatar of undefined
Last Comment

8/22/2022 - Mon