REPLACE
Replaces files.
REPLACE [drive1:][path1]filename [drive2:][path2] [/A] [/P] [/R] [/W]
REPLACE [drive1:][path1]filename [drive2:][path2] [/P] [/R] [/S] [/W] [/U]
Where:
[drive1:][path1]filename
- Specifies one or more files that will replace files in the directory you specify next.[drive2:][path2]
- Specifies the directory where the files will be replaced with the previously specified files./A
- Adds the specified files to the specified directory./P
- Asks for confirmation before replacing or adding a file./R
- Replaces both read-only and unprotected files./S
- Replaces files in all subdirectories in the specified directory./W
- Waits for a disk to be inserted before continuing./U
- Replaces only files older than the specified file.
Example: Replaces the files in the C:\abc
directory with the files in the C:\efg
directory:
replace C:\efg\*.* C:\abc
Comments