mardi 7 avril 2015

Forfiles batch command produces error


Vote count:

0




I'm trying to create a batch file to delete temp files. However when running the bat it errors with "The specified directory does not exist"


This is the file:


REM Deletes files older than 7 days old


forfiles -p "C:\Users\wtsadmin\AppData\Local\Trend Micro\OSDP\wtsadmin@workingtime%2Dsolutions.com\temp" /s /m *.tmp /D -7 /C "cmd /c del @PATH" pause


The path is definitely correct as I've tested it and was copied and pasted from explorer anyway.


I've scoured the Internet try to find a solution, but as far as I can see the commands and syntax is correct?


Thanks in advance


Amer



asked just now







Forfiles batch command produces error

Aucun commentaire:

Enregistrer un commentaire