Home NT Commands
NT Syntax

TOUCH (Resource Kit)

Change file timestamps

syntax
      TOUCH [OPTION]... files ...

key
   /t year month day hour minute second

This is a POSIX utility.

Use the optional argument /t to specify a date other than the current time.
( four-digit years, two-digit months, days, hours, minutes, seconds)

example

   To set the date to 7:30 am 1st October 2015

   TOUCH /t 2015 10 01 07 30 00 MyFile.txt

"I believe entertainment can aspire to be art, and can become art, but if you set out to make art you're an idiot" - Steve Martin

Related commands:

Q299648 - Date and Time Stamps for Files and Folders
COPY - Copy one or more files to another location

Equivalent Linux BASH commands:

touch - Change file timestamps



Simon Sheppard
SS64.com