touchw

Package: WA2L/WinTools 1.2.10
Section: General Commands (1)
Updated: 19 June 2026
Index Return to Main Contents

 

NAME

touchw - change file or directory timestamps

 

SYNOPSIS

WA2LWinTools/lib/[shell/]touchw [ -h | -V ]

touchw [options] (FILE|DIRECTORY)...

options ::= [ -c ] [ -a | -m ] [ -r (FILE|DIRECTORY) | -d "STRING" | -t STAMP ]

 

AVAILABILITY

WA2L/WinTools

 

DESCRIPTION

Update the access and modification times of each FILE or DIRECTORY to the current time.

A FILE argument that does not exist is created empty, unless -c is supplied.

 

OPTIONS

-h
usage message.

-V
print program version.

-a
change only the access time.

-c
do not create any FILESs.

-d "STRING"
parse STRING in the format such as "2004-02-29 16:21:42" and use it instead of current time.

-f
(ignored)

-m
change only the modification time.

-r (FILE|DIRECTORY)
use times of this FILE or DIRECTORY instead of current time.

-t STAMP
use MMDDhhmm[[CC]YY][.ss] instead of current time.

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

1
error.

4
usage printed.

5
version printed.

 

FILES

-

 

EXAMPLES

-

 

SEE ALSO

wintoolsintro(1), lsw(1), ls(1), stat(1), touch(1)

 

NOTES

This manual page is based on the touch(1) manual page written by Paul Rubin, Arnold Robbins, Jim Kingdon, David MacKenzie, and Randy Smith.

 

BUGS

-

 

AUTHOR

touchw was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2026 Christian Walther

This is free software; see WA2LWinTools/man/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 21:36:37 GMT, June 26, 2026