1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TOUCH (V13.04.55)

Discussion in 'Support' started by MikeBaas, Feb 11, 2013.

  1. MikeBaas

    Joined:
    Feb 11, 2013
    Messages:
    17
    Likes Received:
    0
    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 :)
     
  2. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    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!
     
  3. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,279
    Likes Received:
    38
    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.
     
  4. MikeBaas

    Joined:
    Feb 11, 2013
    Messages:
    17
    Likes Received:
    0
    Thanks, Steve & Charles - that fixed it! :)
     

Share This Page