Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: filecompare FileTimeGet filesize FileTimeCode
FileTimeCode gets a machine readable version of FileTime.
FileCompare, on the other hand first checks file sizes. If the Filesizes are equal then it will do a byte by byte compare. If the contents are the same, FileCompare will return 0, regardless of the dates. The other codes indicate that the contents are different.
If the filesizes being same and filetimes being the same is good enough for you, you could...
fn1="x:\xxx.txt" fn2="y:\yyy.txt" different=@FALSE if FileTimeCode(fn1)!=FileTimeCode(f2) then different=@TRUE if FileSize(fn1)!=FileSize(fn2) then different=@TRUEbut that does not actually compare data.
The problem is it still copies the files every time from this one PC (but not mine) even though they are the same. There is no virus software running.
This guy on one particular PC has been having trouble for weeks. I even reformatted his laptop. It is a SONY PCG-735. I have the same exact laptop and I don't have any problems. It seems as if something is not getting cleared in memory.
Copy the real copy from the network to your own CP, and copy the files from the failing laptop and compare the files on your own PC to see if your PC thinks they are different or not
I'm kind of beginning to think the failing PC is sick.
Half the time its a network card in cases like this.
Thanks for pointing us in the right direction!!!!!
Article ID: W13060
Filename: FileCompare - FileSize - FileTimeCode.txt
File Created: 1999:08:11:16:08:56
Last Updated: 1999:08:11:16:08:56