TOUCH (V13.04.55)


the following command
touch ..\out\plg_cbmdebug\*.* /s /D2013-02-11 /T19:14:41
should touch all files in the specified directory and its subdirectories, or have I misunderstood the doc?
I found that after executing this, the files in the directory were touched - but not those in subdirs and the subdirectories themselves were also not touched...:(

Thanks for any suggestions :)
May 20, 2008
Elkridge, MD, USA
TOUCH is a bit more sensitive to the order of its parameters than many other commands. OPTION parameters should always precede the FILE paramters thus:
touch /s /D2013-02-11 /T19:14:41 ..\out\plg_cbmdebug\*.*

Changing the parameter order may solve your problem, I did not test it...

BTW, a free upgrade to build 63 (13.04.63) is available!

Charles Dye

Super Moderator
Staff member
May 20, 2008
Albuquerque, NM
You need to put your options before the filenames:

touch /s /D2013-02-11 /t:19:14:41 ..\out\plg_cbmdebug\*

If you really want to touch directories as well as files, add /A: as well.
Similar threads
Thread starter Title Forum Replies Date
vefatica Error message from TOUCH Support 2
Dick Johnson Touch command is off by 1 hour Support 10
Dick Johnson Question about the Touch command Support 0
fpefpe Documentation touch and /r Support 1
fpefpe Documentation touch Support 6
fpefpe touch - date format Support 2
C Touch command — I Need to touch matching files in another directory. Support 5
Frank Abel Cancio Bello How to? specified milliseconds with the touch command? Support 0
fpefpe Documentation Touch Support 2
nickles WAD touch with reference file Support 5
vefatica WAD TOUCH /R[acw]? Support 8
JohnQSmith Help file for TOUCH Support 0
J touch Support 3
H touch sensitive to order of options Support 2
C touch /c one;two creates only two Support 3
wadeb question about touch /s Support 2
E TOUCH and DST Support 3
Stefano Piccardi TOUCH a directory? Support 3
Stefano Piccardi TOUCH question Support 3
T 'All Downloads' page still links to v13 Support 2
C Nit w/ Support 1
rconn News Take Command v13.03.50 Released Support 0
rconn News Take Command v13.03.45 Released Support 0
Stefano Piccardi setdos /x-4 affects alias expansion v10 vs v13 Support 8
M "V(iew)" command does not work at all for me in V13... Support 6
Y More v13 weirdness Support 4
D Beep in v13 Support 3
Y Unable to register v13. Support 1
Y Unable to close v13 Support 26
vefatica Can't install v13 build 15 Support 7
K_Meinhard Take Command v13 64-bit Support 9

Similar threads