Command Prompt for Windows

Command TOUCH



Touch the date and time for a file(s).


TOUCH [drive:][path]filename [date] [time] [/V]
filenameSpecifies the file(s) to touch.
dateSpecified according to the international format
/VShow version information.


The system date and/or time is used when parameters date and/or time are not specified.

Parameter date is specified according to the international format set in the Control Panel. For example, the USA date format is typically mm-dd-yyyy and the Australian date format is typically dd-mm-yyyy.

When parameter filename specifies a file that does not exist, then that file is created and then touched.

Command TOUCH can not be used to change the date or time for a directory.