I have done a small *.bat file which the following command exists:
forfiles /p %sourcedir% /m *.* /c "cmd /c echo @path && if /l @fdate == %date% (echo true) else (echo false)"
The above checks whether file's modified date is today or not.
I am getting the error after I run it
09/02/2017 was unexpected at this time. 29/01/2018 was unexpected at this time. 13/08/2018 was unexpected at this time.
Note, in the %sourcedir% I have one file that matches the criteria.