replace (command)

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 system attribute set cannot be replaced using replace. The command lists all files that are replaced.[1]

replace
The ReactOS replace command
Developer(s)Microsoft, IBM, Digital Research, Paragon Technology, Rene Ableidinger, ReactOS Contributors
Initial release1986, 3334 years ago
Operating systemMS-DOS, PC DOS, SISNE plus, OS/2, Windows, DR DOS, PTS-DOS, FreeDOS, ReactOS
TypeCommand
LicenseMS-DOS, PC DOS, SISNE plus, OS/2, Windows, DR DOS, PTS-DOS: Proprietary commercial software
FreeDOS, ReactOS: GPLv2
Websitedocs.microsoft.com/en-us/windows-server/administration/windows-commands/replace

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 IBM OS/2,[7] Microsoft Windows,[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 in C:\source\

C:\>replace "C:\source\*.exe" C:\delivery
gollark: But that sounds like a few cryoapioforms in many ways.
gollark: Well, I could make the challenge be to make your own compression algorithm, with the constraints that there must be some inputs which it makes shorter and it must always be lossless.
gollark: Oh, I ignore that for ethical reasons.
gollark: Did you mean to respond in another channel?
gollark: Anyway, ideas for next challenge:- mathy thing- static file server (HTTP)- interpreter for a thing- word counter- Markov chains- compression of some form

See also

References

Further reading

  • Cooper, Jim (2001). Special Edition Using MS-DOS 6.22, Third Edition. Que Publishing. ISBN 978-0789725738.
  • Dyson, Peter (1995). Mastering OS/2 Warp. Sybex. ISBN 978-0782116632.
  • John Paul Mueller (2007). Windows Administration at the Command Line for Windows Vista, Windows 2003, Windows XP, and Windows 2000. John Wiley & Sons. ISBN 978-0470165799.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.