FILETSET

Description, Syntax, Examples, Return Codes


Description:

This program sets the time and date stamp on one or more files to either the current time or to a specified time.

Syntax: FILETSET [/?]
        FILETSET [/L[:]MaxNumofSubDirLevels]
                 [/X[:]ExcludeDirectory]
                 [/W[:][FileLastWriteDate][,FileLastWriteTime]]
                 Filename
        /?       - Displays this help screen
        /W       - Change the files last written  date/time stamp.
        where    Date is in the format dd/mm/yyyy
                    dd   = 1 to 31
                    mm   = 1 to 12
                    yyyy = 1980 to 2171
                 Time is in the format hh:mm:ss
                    hh   = 0 to 23
                    mm   = 0 to 59
                    ss   = 0 to 59
           or
                 You can just the string NOW to set the files to
                 the current date and time.

Examples:

     FILETSET /W:31/12/1997,14:59:20 MYFILE.TXT
     FILETSET /W:31/12/1997          MYFILE.TXT
     FILETSET /W:14:59:20            MYFILE.TXT
     FILETSET /W:NOW                 MYFILE.TXT
     FILETSET /W:NOW                 *.TXT

Return Codes:

NO_ERROR 0
ERR_BADPARAM 1
ERR_BADSTRFORMAT 2
ERR_NOTIMEDATE 3
ERR_BADDATE 4
ERR_BADTIME 5
ERR_NOFILENAME 6

The following error codes are ORed together when processing multiple files. The program will continue to try to set the time/date stamps on the other files when an error occurs in one or more of the files.

ERR_SETDATETIME 8
ERR_GETDATETIME 16
ERR_OPENFILE 32
ERR_NORWACCESS_NOTFOUND 64
ERR_NORWACCESS_PERMDENY 128

Back

Copyright : 1997 Computer Problem Solutions, all rights reserved.