touch

Syntax

touch[-r]file[file...]

Description

Updates the time and date on a file to the current time and date.

Options

-r

Makes the update recursive into subdirectories.

file

Specifies the name or pattern of the file or directory to be updated. Multiple files can be updated at once.

Usage

When multiple files are specified, the system processes the files one by one and errors are ignored.

This command cannot change the time and date of read-only files and directories.

Example

To update the time and date on a file:

fs0:\> touch myfile.txt