Menu
Home Explore People Places Arts History Plants & Animals Science Life & Culture Technology
On this page
replace (command)
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.

Related Image Collections Add Image
We don't have any YouTube videos related to replace (command) yet.
We don't have any PDF documents related to replace (command) yet.
We don't have any Books related to replace (command) yet.
We don't have any archived web articles related to replace (command) yet.

History

The replace command first appeared in MS-DOS 3.22 and has been included in most versions of MS-DOS and compatibles such as FreeDOS3 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 from C:\source\

C:\>replace "C:\source\*.exe" C:\delivery

See also

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.
Wikibooks has a book on the topic of: Guide to Windows Commands

References

  1. Replace - Windows CMD - SS64.com https://ss64.com/nt/replace.html

  2. Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. ISBN 0-7356-1812-7. 0-7356-1812-7

  3. "FreeDOS 1.2 Updates Group - FreeDOS Base". Ibiblio.org. Retrieved 2022-09-08. http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/group-base.html

  4. "PTS-DOS 2000 Pro User Manual" (PDF). Buggingen, Germany: Paragon Technology GmbH. 1999. Archived (PDF) from the original on 2018-05-12. Retrieved 2018-05-12. http://download.paragon-software.com/doc/manual_dos_eng.pdf

  5. DR DOS 6.0 User Guide Optimisation and Configuration Tips https://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf

  6. "FreeDOS 1.2 Updates Package - replace (FreeDOS Base)". Ibiblio.org. 2001-03-25. Retrieved 2022-09-08. http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/replace.html

  7. "JaTomes Help - OS/2 Commands". www.jatomes.com. Archived from the original on 2019-04-14. https://web.archive.org/web/20190414130029/http://www.jatomes.com/Help/Os2Cmd.php

  8. Microsoft Windows XP - Replace https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490988(v%3dtechnet.10)

  9. "Reactos/Replace.c at master · reactos/Reactos". GitHub. 3 January 2022. https://github.com/reactos/reactos/blob/master/base/shell/cmd/replace.c