Fixed Fileutils @CMPTIME

May 29, 2008
529
3
Groton, CT
#1
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
3,504
46
Albuquerque, NM
prospero.unm.edu
#2
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: