TOUCH (V13.04.55)

Hi,

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
3,515
3
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
3,950
53
Albuquerque, NM
prospero.unm.edu
You need to put your options before the filenames:

Code:
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.