In computing, replace is a command that is used to replace one or more existing computer files or add new files to a target directory. Files with a hidden or systemattribute set cannot be replaced using replace. The command lists all files that are replaced.[1]
History
The replace command first appeared in MS-DOS 3.2[2] and has been included in most versions of MS-DOS and compatibles such as FreeDOS[3] and PTS-DOS.[4]DR DOS 6.0 includes an implementation of the replace command.[5] The FreeDOS version was developed by Rene Ableidinger and is licensed under the GPL.[6] It is also included as a console command in IBMOS/2,[7]MicrosoftWindows,[8] and ReactOS. The ReactOS version was developed by Samuel Erdtman and is licensed under the GPL.[9]
Example
The following command updates the files in C:\delivery\ with the .exe files from C:\source\
John Paul Mueller (2007). Windows Administration at the Command Line for Windows Vista, Windows 2003, Windows XP, and Windows 2000. John Wiley & Sons. ISBN978-0470165799.