Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using FC (File Compare)

Status
Not open for further replies.

pnad

Technical User
May 2, 2006
133
0
0
US
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.
 
You might be better posting this in forum931
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top