help.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
REPLACE--Examples
Syntax  Notes
────────────────────────────────────────────────────────────────────────────
 
                             REPLACE──Examples
 
Suppose that several directories on drive C contain different versions of a
file named PHONES.CLI, which contains client names and phone numbers. To
replace all of these files with the latest version of the PHONES.CLI file
from the disk in drive A, type the following command:
 
    replace a:\phones.cli c:\ /s
 
Suppose you want to add new printer device drivers to a directory on drive C
named TOOLS, which already contains several printer device-driver files for
a word processor. To do this, type the following command:
 
    replace a:*.prd c:\tools /a
 
This command searches the current directory on drive A for any files that
have the extension .PRD and then adds these files to the TOOLS directory on
drive C. Because the /A switch is included, REPLACE adds only those files
from drive A that do not exist on drive C.
 
                                      ♦