EasyManua.ls Logo

Commodore PC 20 - Page 190

Commodore PC 20
494 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
152
MS-DOS User's Reference
Diskcopy exit codes
Copying a disk
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_
o
2
3
4
Copied
successfully
Non-fatal readlwrite
error
An
unrecoverable
but
non-fatal
read
or
write
error
occurred_
CONTROL-C
error
The
user
entered
CONTROL-C
to
terminate
diskcopy_
Fatal hard
error
Diskcopy
was unable
to
read
the
source
disk
or
format
the
target disk.
Initialization
error
There
is
not
enough
memory
- invalid drives
or
com-
mand line syntax_
You can use
the
batch processing
if
command
to
perform
error
processing based
on
the
errorlevel
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
L
begin copying_

Table of Contents

Related product manuals