Hello,
I am using FC on a Windows Server 2003 machine as follows:
@ECHO OFF
if exist EmptyFile.xls goto :EXECUTE
goto :END
:EXECUTE
FC ErrorFile.xls EmptyFile.xls | FIND "FC: no dif" > nul
IF ERRORLEVEL 1 goto :hasdata
IF ERRORLEVEL NOT 1 goto :END
:END
exit
:hasdata
echo "hello"
goto :END
Both files are empty but the timestamp on the 2 files is different by a couple of seconds. Is there a way that I can make FC ignore the timestamp on the 2 files? I have tried ascii and binary compares but they both do not ignore the timestamp.
I am using FC on a Windows Server 2003 machine as follows:
@ECHO OFF
if exist EmptyFile.xls goto :EXECUTE
goto :END
:EXECUTE
FC ErrorFile.xls EmptyFile.xls | FIND "FC: no dif" > nul
IF ERRORLEVEL 1 goto :hasdata
IF ERRORLEVEL NOT 1 goto :END
:END
exit
:hasdata
echo "hello"
goto :END
Both files are empty but the timestamp on the 2 files is different by a couple of seconds. Is there a way that I can make FC ignore the timestamp on the 2 files? I have tried ascii and binary compares but they both do not ignore the timestamp.