EasyManua.ls Logo

Commodore PC 20 - Page 217

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...
Replace
Purpose:
Updates previous versions
of
files.
Syntax:
replace
[drive:)pathname [drive:)(path) [/a)[/d)[/p)[/r)[/s)[lw)
Comments:
The
replace
command
lets you easily
update
files
on
your
hard
disk
with
new
versions
of
software.
Replace
performs
two
functions:
By
default, it replaces files in
the
target
directory
with
files in
the
source
directory
that
have
the
same name. You may
use
wildcards in
source
filenames.
When
you specify
the
la
switch,
replace
adds files
that
exist in
the
source
directory
(but
not
in the target
directory)
to
the
target directory.
The
la
switch adds
new
files
to
the target
directory
instead
of
replacing existing ones. You may
not
use this
switch
with
either
the
Id
or
Is switch.
The
Id
switch replaces files in
the
target
directory
only
if
the
source
files
are
newer
than
the
corresponding
target files. This
switch
is incompatible
with
the
la
switch.
The
Ip
switch
prompts
you
with
the
following message before
it
replaces a target file
or
adds a
source
file:
Replace
filename?
(Y/N)_
The
Ir
switch replaces read-only files as well as
unprotected
files.
If
Y()U
do
not
specify this switch, any
attempt
to
replace a read-
only
file causes an
error
and stops
the
replace
process.
The
Is switch searches all subdirectories
of
the
target
directory
while
it replaces matching files. This switch is incompatible
with
the
la
switch.
Replace
never
searches subdirectories in
the
source
path.
The
Iw
switch waits for
you
to
hit any key before it replaces any
files. If you
do
not specify this switch,
replace
begins replacing
or
adding files immediately.
MS-DOS Commands
791
Replace
The Replace switches

Table of Contents

Related product manuals