I want to do echo only checking the date from one file with forfiles:
forfiles /m "C:\Backups\TEST.bak" /c "cmd /c echo test" /d -1
But it returns me an error:
The System cannot find the file specified.
And that file it exists and the directory is correct.
If use forfiles in the same directory (without file) it works fine:
forfiles /p "C:\Backups" /c "cmd /c echo test" /d -1
What am I doing wrong?