Specifications

Version 2.0
201
touch
Summary
Updates the time and date on a file to the current time and date.
Usage
touch [-r] file [file …]
Options
file
The name or pattern of the file or directory. There can be multiple files on the
command-line.
-r
Recurse into subdirectories
Description
This command updates the time and date on the file that is specified by the file
parameter to the current time and date.
If multiple files are specified on the command line, it will continue processing. It will
touch the files one by one and errors will be ignored.
Touch cannot change the time and date of read-only files and directories.
Status Codes Returned
SHELL_SUCCESS The action was completed as requested.
SHELL_NOT_FOUND The target file or set of files were not found.
SHELL_SECURITY_VIOLATION This function was not performed due to a security violation
SHELL_WRITE_PROTECTED The media was write-protected or the file had a read-only attribute
associated with it.