Fixed Fileutils @CMPTIME

May 29, 2008
572
4
Groton, CT
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?
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,689
106
Albuquerque, NM
prospero.unm.edu
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:
May 29, 2008
572
4
Groton, CT
= should be == ! Along with 16,821 other programmers, I've made the same mistake myself. Thanks.