Link to home
Start Free TrialLog in
Avatar of cobp
cobp

asked on

Need a command to delete files/ directories older than 7 days on Windows 2008r2 Server

We have a directory on a fileserver that users scan documents to.  It is suppose to be a temporary area, but users do not clean up the files.  The server path is:

\\servername\Share\scan

I would need all files and subdirectories older than 7 days to be deleted.  I am not a script person or a programmer so I not sure how to do this.

Any help would be appreciated.
ASKER CERTIFIED SOLUTION
Avatar of ITguy565
ITguy565
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cobp
cobp

ASKER

Thank you Itguy565 :)
Also be aware of a great lightweight utility for this called delage32.

http://www.horstmuc.de/wbat32.htm
http://www.horstmuc.de/win/delage.htm

~bp