Hardware Reference
In-Depth Information
Command
Function
establishes a print queue with the files HELP1.TXT, HELP2.TXT,
and HELP3.TXT and also sets the print buffer to 4 KB. The files
are sent to the printer in the specified sequence.
The RESTORE command is used to replace files on the hard disk
which were previously saved on floppy disk(s) using the BACKUP
command. Various options are provided (including restoration
of files created before or after a specified date).
Examples:
RESTORE C: \ DEV \ PROCESS.COM
restores the files PROCESS.COM in the sub-directory named
DEV on the hard disk partition, C:. The user is prompted to
insert the appropriate floppy disk (in drive A:).
RESTORE C: \ BASIC /M
restores all modified (altered or deleted) files present in the
sub-directory named BASIC on the hard disk partition, C:.
RESTORE
The SYS command creates a new boot disk by copying the hidden
DOS system files. SYS is normally used to transfer system files to
a disk which has been formatted with the / S or / B option. SYS
cannot be used on a disk which has had data written to it after
initial formatting.
SYS
The TREE command may be used to display a complete directory
listing for a given drive. The listing starts with the root directory.
TREE
The XCOPY utility provides a means of selectively copying files.
The utility creates a copy which has the same directory structure
as the original. Various options are provided:
/A only copy files which have their archive bit set (but do not
reset the archive bits)
/D only files which have been created (or that have been
changed) after the specified date
/M copy files which have their archive bit set but reset the archive
bits (to avoid copying files unnecessarily at a later date)
/P prompt for confirmation of each copy
/S copy files from sub-directories
/V verify each copy
/W prompt for disk swaps when using a single-drive machine
Example:
XCOPY C: \ DOCS \ *.* A:/M
copy all files present in the DOCS sub-directory of drive C:.
Files will be copied to the disk in drive A:. Only those files which
have been modified (i.e. had their archive bits set) will be copied.
Always use XCOPY in preference to COPY when sub-directories
exist. As an example, XCOPY C: \ DOS \ *.* A: \ /S will copy all
files present in the DOS directory on drive C: together with all files
present in any sub-directories, to the root directory of the disk in A:.
XCOPY
Search WWH ::




Custom Search