Need .BAT file that deletes files based upon age of 10 days or older
I am using Windows 2000 Terminal server and like to have a .BAT file remove files 10 days or older. Howeve,r the FORFILES command does not work on Windows 2000 Terminal server. Any suggestions?
FORFILES /D -10 /M *.txt /C "cmd /c del @path 0x09 was changed 10 days ago"echo Deleting .TXT Files echo File Deleted
I think it should be ok to place it in the system32 folder or anywhere else. You might have to add it to the path environment so it can be recognized even if you are not in the same directory.