Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Anyone know of a script which I can execute with task scheduler which will allow me to delete the contents of a specified folder, but only the content that hasn't been modified for the last 3 days?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You could do this in a powershell script which is supported in windows server 2008. I found this at stackoverflow

http://stackoverflow.com/questions/827738/powershell-script-to-delete-old-files

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.