Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Fixed Fileutils @CMPTIME

May
572
4
Code:
~\Work> fileinfo x.tmp
C:\Users\DCantor\Work\x.tmp

    3,154 bytes     3.08 kilobytes

    Created:   Mon 2017-11-13  11:12:57
    Modified:  Wed 2017-11-01  10:00:16                                                                     [25]  0:00:00.013
    Accessed:  Mon 2017-11-13  11:12:57

    Attributes:  Archive

    CRC32:  4163A984     MD5:  B5E467A36E491440B34F60FFA9CAB7AC

1 matching file found.

~\Work> for %%xx in (a,c,w) echo %@cmptime[x.tmp,x.tmp,%xx]
-1
-1
1

~\Work>
Huh? Shouldn't the date of any file compared against itself yield 0?
 
Heh. Spot the typo:
Code:
if ( FileSystem1 = FS_FAT32 )
        FileSystem1 = FS_FAT;

if ( FileSystem2 == FS_FAT32 )
        FileSystem2 = FS_FAT;

I'll get a fix up Monday morning (can't access the web server from here.)
 
Last edited:
= should be == ! Along with 16,821 other programmers, I've made the same mistake myself. Thanks.
 
Back
Top