REPLACE
(replace)
替换文件。用源目录中的文件代替目标目录中的同名文件。还可以使用REPLACE在目标目录中加入文件。
EPLACE
[drive1:][path1]filename [drive2:][path2] [/A] [/P]
[/R] [/W]
EPLACE
[drive1:][path1]filename [drive2:][path2] [/P] [/R]
[/S] [/W] [/U]
 [drive1:][path1]filename 指定源文件。
 [drive2:][path2]         指定要替换文件的
                         
目录。
 /A                      
把新文件加入目标目录。不能和
                         
/S 或 /U 命令行开关搭配使用。
 /P                      
替换文件或加入源文件之前会先提示您
                         
进行确认。
 /R                      
替换只读文件以及未受保护的
                         
文件。
 /S                    
  替换目标目录中所有子目录的文件。
                         
不能与 /A 命令选项
                         
搭配使用。
 /W                      
等您插入磁盘以后再运行。
 /U                      
只会替换或更新比源文件日期早的文件。
                         
不能与 /A 命令行开关搭配使用。
★★★★★实例★★★★★:
如果C盘上的几个不同目录都包含不同版本的PHONES.CLI,用于记录包含客户名和电话号码。若希望用A盘上的PHONES.CLI文件的最新版本代替所有这些文件,可使用以下命令: 
replace a:\phones.cli c:\ /s 
如果要在C盘TOOLS目录中加入新的打印机驱动程序,但TOOLS目录中已有字处理程序的几个打印机驱动程序,可使用以下命令: 
replace a:*.prd c:\tools /a 
该命令在A盘上搜索扩展名为.PRD的文件,然后将这些文件加 到C盘的TOOLS目录中。 因为包括了/A开关,所以REPLACE仅从A盘中加入C盘TOOLS目录中没有的文件。
Replaces files.
REPLACE
[drive1:][path1]filename [drive2:][path2] [/A] [/P]
[/R] [/W]
REPLACE
[drive1:][path1]filename [drive2:][path2] [/P] [/R]
[/S] [/W] [/U]
  [drive1:][path1]filename
Specifies the source file or files.
  [drive2:][path2]        
Specifies the directory where files are to be replaced.
  /A                      
Adds new files to destination directory. Cannot use with /S or /U
switches.
  /P           
           Prompts
for confirmation before replacing a file or adding a source file.
  /R                      
Replaces read-only files as well as unprotected files.
  /S                      
Replaces files in all subdirectories of the destination directory.
Cannot use with the /A switch.
  /W                      
Waits for you to insert a disk before beginning.
  /U                      
Replaces (updates) only files that are older than source files. Cannot
use with the /A switch.