Download Chapter 1 Contents
Transcript
Copying Files LIF Examples DOS Examples Copying an Entire Volume CAUTION Examples (LIF and DOS) The COPY command allows you to copy an individual file or an entire volume. Any type of file can be copied. You can copy a file to the same volume or to a different volume. When you copy a file to the same volume, the new file name must be different from the existing file name (if it is in the same directory). You can copy DOS files to LIF volumes and vice versa. Refer to "Copy to/from DOS and LIF" later in this chapter for more information. MSI ":,700,0,0" Sets default drive/volume to hard disk, volume 0 COPY "TEST" to "TEST:,700,1" COPYs file from the default drive/volume to flexible disk using the same file name COPY "TEST:,700,1" to "PROG_1:,700,0,0" COPYs file from flexible disk to hard disk volume 0 using a different file name MSI ":,700,0,0" Sets default drive/volume to hard disk, volume 0 COPY "TEST:MEMORY,0,0" to "PROG_1" COPYs file from RAM Volume 0 to default mass storage volume using different file name COPY "\PROGRAMS\VOLTMET\TEST:,700,0,1" to "TEST:,700,1" COPYs TEST file from PROGRAMS\VOLTMET directories on volume 1 of hard disk to flexible disk (if the flexible disk is formatted in DOS, "TEST" goes to the current directory since no path was specified) MSI "\PROGRAMS\VOLTMET:,700,1" Sets current directory path to PROGRAMS\VOLTMET. Sets default drive/volume to flexible disk COPY "TEST" to "\PROGRAMS\VOLTMET:,700,0,1" COPYs file from current directory path on the default drive and volume to \PROGRAMS\VOLTMET directories on hard disk volume 1 COPY "\PROGRAMS\VOLTMET\TEST:MEMORY,0,1" to "\DCVOLT\PROG1:,700,1" COPYs TEST file from PROGRAMS\VOLTMET directories on RAM Volume 1 to file PROG1 on DCVOLT directory of flexible disk The COPY command also allows you to copy the entire contents of a mass storage volume to another volume. You cannot copy a larger volume to a smaller volume. You can copy a smaller volume to a larger volume, however the size of the larger volume will be reduced to the size of the smaller volume. When you copy a LIF volume to a DOS volume, the DOS volume will be converted to LIF and vice versa. Copying a volume destroys all previous data on the destination volume. COPY ":,700,1" to ":,700,0,2" COPYs volume from flexible disk to hard disk volume 2 Mass Storage Concepts 4-13