Scripting Help
I was able to run the script below but doesn't remove any directories I know I am missing something for the directories?
REM Remove files older than 14 days
forfiles -p "M:\14DAYTEMP" /q /s /m *.* /c "cmd /c Del @path" d- 14
forfiles /p "M:\14DAYTEMP" /s /m *.* /c "cmd /c if @ISDIR== TRUE RD /q @FILE &RD /Q /S @FILE" d- 14
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
stevobasquez
10 years ago
Posted by:
EdT
10 years ago
Posted by:
EdT
10 years ago