Replace (command) explained

replace
Developer:Microsoft, IBM, Digital Research, Paragon Technology, Rene Ableidinger, ReactOS Contributors
Operating System:MS-DOS, PC DOS, SISNE plus, OS/2, eComStation, ArcaOS, Windows, DR DOS, PTS-DOS, FreeDOS, ReactOS
Platform:Cross-platform
Genre:Command
License:MS-DOS, PC DOS, SISNE plus, OS/2, Windows, DR DOS, PTS-DOS: Proprietary commercial software
FreeDOS, ReactOS: GPLv2

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]

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 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

External links

Notes and References

  1. https://ss64.com/nt/replace.html Replace - Windows CMD - SS64.com
  2. Book: Wolverton. Van. Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. 2003. Microsoft Press. 0-7356-1812-7.
  3. Web site: FreeDOS 1.2 Updates Group - FreeDOS Base . Ibiblio.org . 2022-09-08.
  4. Web site: PTS-DOS 2000 Pro User Manual . . Buggingen, Germany . 1999 . 2018-05-12 . live . https://web.archive.org/web/20180512094512/http://download.paragon-software.com/doc/manual_dos_eng.pdf . 2018-05-12.
  5. https://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf DR DOS 6.0 User Guide Optimisation and Configuration Tips
  6. Web site: FreeDOS 1.2 Updates Package - replace (FreeDOS Base) . Ibiblio.org . 2001-03-25 . 2022-09-08.
  7. Web site: JaTomes Help - OS/2 Commands . www.jatomes.com . dead . https://web.archive.org/web/20190414130029/http://www.jatomes.com/Help/Os2Cmd.php . 2019-04-14.
  8. https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490988(v%3dtechnet.10) Microsoft Windows XP - Replace
  9. Web site: Reactos/Replace.c at master ยท reactos/Reactos. GitHub. 3 January 2022.