Forum Moderators: open
forfiles /p c:\backup /s /m *.* /d t-5 /c "cmd /c del @file : date >= 5 days"
Will this work?
C:\>2.bat
C:\>forfiles /p c:\backup /s /m *.* /d t-5 /c "cmd /c del @file : date >= 5 days
"
ERROR: Invalid date specified.
Type "FORFILES /?" for usage.
... I input the microsoft example from the link you sent me:
C:\>1.bat
C:\>forfiles /p c:\ /s /m *.* /d t-100 /c "cmd /c echo @file : date >= 100 days"
ERROR: Invalid date specified.
Type "FORFILES /?" for usage.
What is going on? not even the microsoft example works on it? please please help i am going out of my mind.
/d switch. Try that: /dt-100 /d t-100 Another idea would be to run the
/? switch and make sure all the switches you're running in the batch file are listed.