1.

Solve : Copying Mulitiple Files in Order?

Answer»

Hi,

I have been given a task at work to move a number of files from one computer to another. The start computer runs on DOS and only has a floppy drive. The files I need all end in a certain extension and there is over 10 megs worth so it will not all fit on 1 disk. I copied all the files I needed (*.sum) and I was hoping that once the first disk was full I could just pop in another and it would carry on copying them across. Unfortunately it just stopped. I can't jsut try that again as it will copy all the files I have already copied across and won't get to the new ones.

Is there a way of saying that I want to copy all files of a certain extension, from the last file that was MOVED to SAY another PREDETERMINED file, in the order that they are listed, to the floppy drive.

Many thanks.You can use the Xcopy and Attrib commands to copy files onto multiple diskettes, providing no single file is larger than the total size of the diskette. In that case, you have to use the Backup command or other Backup utility.

The Attrib command is used to set all archive bits on. When a file is copied, the bit is turned off. Each time Xcopy does not have enough room to copy the next file, you will get a "Disk Full" message. Put in another blank disk and REPEAT the Xcopy command. The archive bit keeps the previously copied files from being copied again.

Xcopy copies the files in alphabetical order.

For example, to copy all the .sum files in the C:\DOCS DIRECTORY onto floppies, type:

This presumes that the floppy drive is drive A, if not change as appropriate.

Prepare a set of blank floppies. I suggest you stick labels on them.

do this once...

C:\DOCS>attrib +a *.sum

repeat until done...

C:\DOCS>xcopy *.sum A: /m

When each disk is full, remove it and write eg a number on the label to remind you later which disk is which.



Discussion

No Comment Found