Sunday, June 10, 2012

Batch file to delete files older than N days | commandline

forfiles /P "C:\temp\delfiles" /S /M *.txt /D -3 /C "cmd /c del @PATH"

forfiles documentation:
http://ss64.com/nt/forfiles.html

No comments:

Post a Comment