home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
dirutl
/
touch.arc
/
TOUCH.MAN
< prev
Wrap
Text File
|
1987-09-27
|
2KB
|
66 lines
TOUCH(1) An MS-DOS Utility TOUCH(1)
NAME
touch - modify the date and time stamp for the named file(s)
SYNOPSIS
touch [-cv] [-d date] [-t time] filespec...
DESCRIPTION
Touch allows you to modify the date and time of last write stamp
for the named file(s). You may specify the date and/or time
touch is to use, or you may let touch default to the system date
and/or time. If the file to be touched does not exist, touch
will create it.
Touch supports the following options:
-c Don't auto-create files that don't exist.
-v List the touched files to stdout.
-d date Use the specified date instead of the system
date. The date string must be in the form
<month><delim><day><delim><year>. Month must be
an integer in the range [1..12]; day must be an
integer in the range [1..max_date_for_month];
year must be an integer in the range
[1980..2100], though [80..99] may be used as a
shorthand form for 1980..1999. The delimiter may
be any non-numeric character.
-t time Use the specified time instead of the system
time. The time string must be in the form
<hour><delim><min>[<delim><sec>]. Hour must be
an integer in the range [0..23]; min must be an
integer in the range [0..59]; the optional sec
must be an integer in the range [0..59] The
delimiter may be any non-numeric character.
The filespec parameter(s) may be any legitimate MS-DOS filespec
and may include any valid MS-DOS wildcard characters.
If an error occurs during the attempted modification (such as
trying to modify a sub-directory), a message saying so appears
in the output next to the appropriate filespec. Touch then
continues with the next filespec. Touch returns an exit status
of the number of files for which the touch failed on normal exit
or 255 for a fatal exit.
AUTHOR
Richard Hargrove
Texas Instruments, Inc.
P.O. Box 869305, m/s 8473
Plano, TX 75086
214/575-4128
[ 1 ]