Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

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

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
 
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
 
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
 

Similar threads

Replies
7
Views
2K
Back
Top