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

how to copy descript.ion to *-backup.* ?

Discussion in 'Support' started by Stefano Piccardi, Aug 9, 2012.

  1. Stefano Piccardi

    Joined:
    May 31, 2008
    Messages:
    376
    Likes Received:
    2
    Would someone please show me the right options to copy descript.ion to description-backup.ion (full paths) ? TIA
     
  2. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    When you use TCC's COPY to back up any file which has a description to another directory, it will duplicate the description in the target directory, so normally there is no need to explicitly back up DESCRIPT.ION.

    Since descript.ion is normally a hidden file, to copy it you need to use the /H option (or the /a:+h option) else COPY will ignore it.
    The command below ought to do what you are asking:

    copy /h descript.ion description-backup.ion
     
  3. Stefano Piccardi

    Joined:
    May 31, 2008
    Messages:
    376
    Likes Received:
    2
    Thank you, but unfortunately /h doesn't seem to help.
    Code:
    V:\>attrib /a: desc*
    _H_A___________ V:\descript.ion
    
    V:\>copy /h descript.ion description-backup.ion
    0 files copied
    
    V:\>copy /a+h descript.ion description-backup.ion
    TCC: (Sys) The system cannot find the file specified.
     "V:\descript.ion"
    0 files copied
    
    V:\>copy /h /a+h descript.ion description-backup.ion
    0 files copied
    
     
  4. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,288
    Likes Received:
    39
    It looks like TCC is going two miles out of its way to prevent you from shooting yourself in the foot. You could probably work around it with something like this:

    Code:
    setdos /d0
    setdos /d"nul.ion"
    copy /h descript.ion description-backup.ion
    setdos /d"descript.ion"
    setdos /d1
    
     
  5. Stefano Piccardi

    Joined:
    May 31, 2008
    Messages:
    376
    Likes Received:
    2
    Precisely! Mistery solved, thank you. Also %_dname can be added to your recipe.
     

Share This Page