Thursday, February 17, 2011

Delete files older then X days using batch file

forfiles /p C:\Temp\Payable_05Jan\ /S /M *.* /D -1 /C "cmd /c del /q @PATH"

[check the quotation sign, this is very imp.]

No comments:

Post a Comment