Is there a "touch" in DOS?

Black Hole

May contain traces of nut
I want to do an update of the file creation timestamp on all the files in a particular tree... from the Win7 command console. If there is no native command, I suppose I could do it with a FOR..DO construct in a batch file.
 
I found this (https://superuser.com/questions/10426/windows-equivalent-of-the-linux-command-touch/764716):
If you want to touch the date stamp of a file using windows, use the following command at the command prompt:

copy /b filename.ext +,,

(where filename.ext is your file's name). The +,, is a special flag to copy telling it to simply update the date/time on the file:

...but actually used the block "change attributes" functionality within DOpus (the Windows Explorer replacement I use).
 
And Command console != DOS (again).
Yes, but my addled brain fails to acknowledge the distinction when trying to "do stuff" - just as, I imagine, non-techie Linux users would struggle to know the difference between the different shells (I certainly do, but then I am steeped in MS-DOS/Win3.1/Win98 and only a recent toe-dipper in Mint Linux).
 
Back
Top