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

#2
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
 
May 31, 2008
382
2
#3
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
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
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,556
46
Albuquerque, NM
prospero.unm.edu
#4
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