REPLACE--Notes
REPLACE messages
As REPLACE adds or replaces files, MS-DOS displays their filenames on the
screen. After the REPLACE command is finished, MS-DOS displays a summary
line in one of the following formats:
nnn files added
nnn files replaced
no file added
no file replaced
Replacing files on a floppy disk system
If you have a floppy disk system and need to switch disks during the REPLACE
operation, you can specify the /W switch so that REPLACE will wait for you
to switch disks, as necessary.
Limitations on REPLACE
You cannot use the REPLACE command to update hidden files or system files
such as IO.SYS and MSDOS.SYS. For information about changing hidden and
system attributes, see the <ATTRIB> command.
REPLACE exit codes
The following list shows each exit code and a brief description of its
meaning:
0 REPLACE successfully replaced or added the files.
1 The computer has a version of MS-DOS that is incompatible with REPLACE.
2 REPLACE could not find the source files.
3 REPLACE could not find the source or destination path.
5 The user does not have access to the files you want to replace.
8 There is insufficient system memory to carry out the command.
11 The user used the wrong syntax on the command line.
You can use the ERRORLEVEL parameter on the IF command line in a batch
program to process exit codes returned by REPLACE.
For an example of a batch program that processes exit codes, see the <IF>
command or the <CHOICE> command.
|