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

#And smiles you'll give and tears you'll cry
And all you touch and all you see
Is all your life will ever be# - Pink Floyd (Breathe)


Related:

Q299648 - Date and Time Stamps for Files and Folders
COPY - Copy one or more files to another location
Equivalent bash command (Linux): touch - Change file timestamps



Back to the Top

Simon Sheppard
SS64.com