Sign up ×
Server Fault is a question and answer site for 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

share|improve this answer

Your Answer


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.