I have this little string that I WANT to delete all files of a certain age in "\Test" EXCEPT any files in "\REFERENCE":
FORFILES /p "X:\DAILY\Test" /m *.* /s /d -1 /c "cmd if @relpath not X:\DAILY\Test\REFERENCE\* then /c del /f @file"
I've tried @path instead of @relpath, with and without the "then" with quotation marks around the path, etc.. I'm clearly missing something. Can anyone advise?
Thank you!
Aucun commentaire:
Enregistrer un commentaire