Commodore PC Ms-Dos 3.2 User's Manual page 124

Table of Contents

Advertisement

52 MS-DOS User's Reference
Diskcopy exit codes
Diskcopy figures out the number of sides to copy, based on the
source drive and disk.
When correctly written programs exit back to ms-dos, they return
an exit code: 0 if no error occurred, or a value greater than zero
if there was a problem. This exit code can be tested in batch files,
and it allows batch programmers to "branch" to an error-handling
routine in the batch file.
0
Copied successfully
1
Non-fatal read/write error
An unrecoverable but non-fatal read or write erroi
occurred.
2
control-c error
The user entered control-c to terminate diskcopy.
3
Fatal hard error
Diskcopy was unable to read the source disk or format
the target disk.
4
Initialization error
There is not enough memory — invalid drives or com
mand line syntax.
u
Kj
\J
Copying a disk
You can use the batch processing if command to perform error
processing based on the etrorlevel returned by diskcopy.
Example:
To copy the disk in drive A to the disk in drive B, use the follow
ing command:
diskcopy
a:
b:
Diskcopy prompts you to insert both disks and press any key to
begin copying.
u

Advertisement

Table of Contents
loading

Table of Contents