home *** CD-ROM | disk | FTP | other *** search
-
- FTD.DOC
-
- File Time/Date stamper DOCumentation
-
- Background: Among the fields of a file directory are wordsize
- bit-maps of the date and time when that file was created or
- up-dated. Like the file length, the file date and time are
- intended to show accurate information about the file and,
- therefore, are not made available for casual change. File
- attributes, date/time stamps and file length were originally
- intended to be read/only information to directory programs.
-
- Problem: Just as legitimate reasons for altering the file
- Hidden, System and Read/Only attributes have led to utility
- programs to alter them, there are at least two reasons for
- changing the Date and Time stamps without rewriting the file.
- Whether failure to set the system date/time has resulted in
- stamps of the 1/1/80 IBM birthdate plus time since boot-up or
- ordering by date and time would "professionalize" directory
- appearance, FTD is at your service.
-
- Solution: The command FTD followed by a File Specification
- will update the Time and Date stamps for any file which matches
- the File Specification to the Current DOS Date and Time. If
- optional Date and/or Time parameters follow the "file spec" in
- either order, that Date and/or Time will be used for the stamp.
- Should the Date parameter be invalid, the Current Date will be
- used. The new Time stamp will be as entered.
-
- Syntax: FTD filespec [mm/dd/yy[yy]] [hh[:mm[:ss]]]
-
- Notice: that the year may be specified as 2 or 4 digits. This
- will be convenient a century from now for entering 12/21/2089.
- On the other hand, the first of January 2000 can be entered as:
- 1/1/0. Any part of the Time parameter which is omited will be
- assumed to be zero. For example FTD *.* 0 will stamp all files
- in the default directory to the current date with midnight as
- the time (00:00:00). Since 2000 will be a leap year you can do
- FTD LEAPYEAR.* 0 2/29/0 for stamping all default directory files
- with the primary filename of "LEAPYEAR" to midnight - 2/29/2000.
- A full File Specification is the drive letter and any directory
- paths for the file - ie FTD d:\mainpath\nextpath\lastpath\file.
-
- Limitations: Some deliberate limitations are imposed to avoid
- inadvertently restamping files which you did not intend with an
- ambiguous File Specification (using *s or ?s). Hidden or System
- and Read/Only files will NOT be restamped. Should you want to
- restamp such files, you may use any ATTRIBute changing program
- before and after restamping the Time/Date with FTD. An invalid
- date will NOT be accepted. DOS and FTD are NOT so fussy about
- the validity of the time.
-
- The FTD command buffer is only 42 bytes long and so using the
- three directory path File Specification with a filename and ext
- of 12 characters plus a Date and/or Time will corrupt the name
- of the day of the week which is normally supplied by FTD if it
- happens to be "Sunday".
-
- Niceties: The lead-in display of FTD before beginning the list
- of files stamped report includes the NAME of the Day of the Week
- for the date being stamped. It may be NICE to KNOW that 2/29/88
- was a "Monday". Should the list of files be long enough it will
- be "paged" so that you must press a key to continue the display.
- This "paging" will allow reading the lead-in message.
-