EasyManua.ls Logo

Commodore PC 40 - Page 236

Commodore PC 40
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...
198
MS-DOS User's Reference
The
/w
switch causes
xcopy
to wait before
it
starts copying files.
Xcopy
displays the following message:
Press
any
key
when
ready
to
start
copying
files
[
L
You must press a key to continue,
or
press CONTROLĀ·C to abort
the
[
xcopy
command.
Xcopy
exit
codes
Copying
to a disk
with
a different
format
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, which you can test in
batch files, lets you "branch" to an error-handling routine in
the
batch file.
If
xcopy
encounters an error, it returns one
of
the
following exit
codes:
o
1
2
4
5
Copy without error
No files found to copy
CONTROL-C entered by user
to
terminate
xcopy
Initialization
error
There
is
not enough memory - invalid drive
or
command
line syntax, file not found,
or
path
not
found.
Int 24 error occurred
The user aborted from INT24
error
reading
or
writing
disk.
You can test for these codes by using the
error/evel condition
of
the
batch processing
if
command.
Examples:
Because the
diskcopy
command copies disks track by track, it
requires your source and target disks
to
have the same format.
If you have a disk that contains files in subdirectories and you
want
to
copy it to a target disk that has a different format, you
must use the
xcopy
command. For example,
the
following exam-
ple copies
all
the files and subdirectories (including any empty
subdirectories)
on
the disk in drive A to
the
disk in drive
B:
xcopy
a:
b:
Is
Ie
The
xcopy
command may prompt you to specify whether the
target is a file
or
a directory.
If
you don't want
to
receive this
prompt, type the following command:
copy
Ib
xcopy.exe
mcopy.exe
[
[
[
[
[
[
[
[
[
[
[
[
[

Table of Contents

Related product manuals