I have a script that deletes files in folder that are older than 1 year.
FORFILES /P D:Doc\ /M *.txt /D -366 /C "cmd /c del @path"
It works good, except when it does not find any files older than 1 year, it gives the following error:
ERROR: No files found with the specified search criteria.
is there any way i could ask to ignore this error