replace (command)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

replace
Developer(s)Microsoft, IBM, Digital Research, Paragon Technology, Rene Ableidinger, ReactOS Contributors
Initial release1986, 32–33 years ago
Operating systemMS-DOS, PC DOS, OS/2, Windows, DR DOS, PTS-DOS, FreeDOS, ReactOS
TypeCommand

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[edit]

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[edit]

The following command updates the files in C:\delivery\ with the .exe files in C:\source\

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

See also[edit]

References[edit]

  1. ^ Replace - Windows CMD - SS64.com
  2. ^ Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. ISBN 0-7356-1812-7.
  3. ^ 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. Cite uses deprecated parameter |dead-url= (help)
  5. ^ DR DOS 6.0 User Guide Optimisation and Configuration Tips
  6. ^ http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/replace.html
  7. ^ http://www.jatomes.com/Help/Os2Cmd.php#REPLACE
  8. ^ Microsoft Windows XP - Replace
  9. ^ https://github.com/reactos/reactos/blob/master/base/shell/cmd/replace.c

Further reading[edit]

External links[edit]