|
REPLACE
Replaces files in the destination directory with files in
the source directory that have the same name.
Syntax
REPLACE Source_PathName Destination_path [/A] [/P] [/R] [/W]
REPLACE Source_PathName Destination_path [/P] [/R] [/S] [/W] [/U]
Key
path : The folder where files are to be replaced.
/A : Adds new files to the destination directory
instead of replacing existing files.
/P : Prompts for confirmation (each file).
/R : Replaces read-only files as well as unprotected
files.
/S : Includes all subfolders of the destination.
/W : Waits for you to insert a disk before replace
begins to search for source files.
/U : Replaces (update) only files that are older than
the source.
You can also use REPLACE to add unique file names to the
destination directory.
You cannot use the replace command to update hidden files or
system files.
Examples
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:
replace a:*.prd c:\tools /a
Cmd Commands
|