I'd like to modify this so it only copies if the destination file is older than the source.
Not sure where to start at.

    LOCAL buffer[260]:BYTE
    invoke GetCL,1,ADDR buffer

    ; Specifies how this operation is to proceed if a file of the same
    ; name as that specified by lpNewFileName already exists.
    ; If this parameter is TRUE and the new file already exists,
    ; the function fails. If this parameter is FALSE and the new file
    ; already exists, the function overwrites the existing file and succeeds.                 

    ; remove file attributes from destination file in case it's READ-ONLY
    invoke SetFileAttributes, offset File2,FILE_ATTRIBUTE_NORMAL

    ; If file isn't already there, this copies it there
    invoke CopyFile, offset File1, offset File2, TRUE

    ; Otherwise, make it so.
    invoke CopyFile, offset File1, offset File2, FALSE
Posted on 2006-01-18 15:15:13 by skywalker