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.
\\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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
http://www.horstmuc.de/wbat32.htm
http://www.horstmuc.de/win/delage.htm
~bp
ASKER