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

Table of Contents

Advertisement

n
n
n
n
n
n
n
n
n
n
n
n
n
Replace
Purpose:
Updates previous versions of files.
Syntax:
replace [drive.]pathname [drive:][path] [/a][/d][/p][/r][/s][/w]
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 /a switch, replace adds files that exist in
the source directory (but not in the target directory) to the
target directory.
The /a 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 /a switch.
The /p switch prompts you with the following message before it
replaces a target file or adds a source file:
Replace filename?
(Y/N)_
The It switch replaces read-only files as well as unprotected files.
If you 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 /a switch. Replace never searches subdirectories in the
source path.
The /w 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 79
Replace
The Replace switches
n

Advertisement

Table of Contents
loading

Table of Contents