The Graham Utilities for OS/2 - Version 2


[Warpspeed]

[Table of Contents] [Index] [Previous] [Next]


FD - File Date

Summary

FD sets all files which match the file specification to the current date and time unless overridden on the command line.

Icon

Command Line Format

Usage: FD {Switches} <File Spec> Drive Spec(s)

Switches

-a
All disks.
-d
Specify the date in your local format.
-f
Force file names to lower case.
-h
Hard disks only.
-s
Include subdirectories in the search.
-t
Specify the time in 24 hour format.

Note : If no file specification is entered, all files are listed. If drive specifications are entered then those drives are searched. If no drive specifications are entered then the current drive is searched.

Description

FD sets all files matching the file specification to the current date and time, unless overridden on the command line. The file's last modification date and time are modified. HPFS partitions support date and time fields for the file's creation and last access. FD does not modify these fields.

-a All disks

FD will scan all logical disk drives defined by the system, starting at drive A:. The drives are scanned in order, starting at A:, then B: and so on.

-d Specify the date

This switch allows you to nominate a specific date instead of using the current date. FD will use the date format of your native country. The available formats are:

DD-MM-YY
Day-Month-Year
MM-DD-YY
Month-Day-Year
YY-MM-DD
Year-Month-Day

-f Force file names to lower case

On FAT partitions, file names are always displayed in lower case. HPFS partitions retain their case, but the file system does not differentiate between the case of file names, and they are displayed as they were entered. The -f option forces all displayed file names, across all file system types, to be displayed in lower case.

-h Hard disks only

FD will scan all logical disk drives defined by the system, starting at drive C:. The drives are scanned in order, starting at C:, then D: and so on.

-s Subdirectories

FD will include subdirectories as part of its search of the specified disk drives. If a subdirectory name is included as part of the file specification, then the search will include that subdirectory and all subdirectories below it. If no subdirectory is given as part of the file specification, then the current directory and all below it are included in the search.

-t Specify the time

Instead of using the current time, this switch allows you to nominate a specific time. The time is specified in 24 hour HH:MM:SS format. 00:00:00 is midnight, 12:00:00 is noon, 23:00:00 is 11pm and so on.

Examples

FD
This will set all files in the current directory to the current date and time.
FD *.exe -d31-12-93
When run in Australia, this will set the date of all .EXE files to the 31st of December 1993.
FD *.exe -d12-31-93
When run in the United States of America, this will set the date of all .EXE files to the 31st of December 1993.
FD *.exe -d93-12-31
When run in Japan, this will set the date of .EXE files to the 31st of December 1993.
FD -hs
This will set the date and time of the last write of all files on all hard disks to the current date and time.