I need to branch a batch files execution based on the datestamp of a file. Basically, there is a file that must be generated once per day, any time that day is fine.
pseudo code
if (last modified date stamp of c:\temp\file1.txt) equals (current date) then goto TaskSucceeded else goto TaskFailed
:TaskFailed
echo "Task Failed"
exit /B
:TaskSucceeded
echo "Task Succeeded"
exit /B
Any help would be appreciated.