I am trying to use batch to check if file was modified today.
Can you please help me with your suggestions? Below is the code with which I am facing some issue.
SET filename="D:\empty\xyz.txt"
forfiles /m %filename% /d 0 && (
echo The file was modified today
) || (
echo The file has not been modified today
)