EasyManua.ls Logo

Commodore PC - Page 113

Commodore PC
414 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...
MS-DOS
Commands
41
n
The
copy
command
also
allows
you
to
append
files.
To
do
this
Appending
files
^^^^
you
simply
list
any
number
of
files
as
options
to
copy,
each
()
separated
by
a
plus
sign
(
+
),
then
specify
a
target
file
to
send
the
combined
files
to;
for
example:
f^\
copy
intro.rpt
+
body.rpt
+
b:5um.rpt
report
This
command
combines
files
named
intro.rpt,
body.rpt,
and
/—^
sum.rpt
(on
drive
B),
and
places
them
in
a
file
called
report
on
the
default
drive.
If
you
leave
out
the
target
file,
ms-dos
combines
the
files
into
the
first
specified
file.
^\
You
can
also
combine
several
files
into
one
by
using
wildcards;
I
for
example:
^^^
I
copy
*.txt
combin.doc
This
command
takes
all
files
with
an
extension
of
.txt
and
com
bines
them
into
one
file
named
combin.doc.
'
\In
the
following
example,
each
file
that
matches
*.txt
is
combined
with
its
corresponding
.ref
file.
The
result
is
a
file
with
the
same
filename
but
with
the
extension
.doc.
Thus,
filel.txt
is
combined
(
*\
with
filel.
ref
to
form
filel.
doc,
xyz.
txt
with
ocyz.
ref
to
form
xyzdoc,
and
so
on:
/—s
copy
*.txt
+
*.ref
*.doc
The
following
copy
command
combines
all
files
matching
*.txt
^-v
and
all
files
matching
*.ref
into
one
file
named
combindoc:
copy
*.txt
+
*.ref
combin.doc
Warning
Do
not
try
to
append
files
if
one
of
the
source
file
names
has
the
same
extension
as
the
target.
For
example,
if
the
/—s
file
alltxt
already
exists,
the
following
command
is
an
error:
copy
*
.
txt
al
1.txt
f)
ms-dos
would
not
detect the
error
until
it
tried
to
append
alltxt.
But
at
that
point,
copy
might
have
already
destroyed
the
alltxt
file.
n
n
n

Related product manuals