replace
DevelopersMicrosoft, IBM, Digital Research, Paragon Technology, Rene Ableidinger, ReactOS Contributors
Initial release1986, 39–40 years ago
Operating systemMS-DOS, PC DOS, SISNE plus, OS/2, eComStation, ArcaOS, Windows, DR DOS, PTS-DOS, FreeDOS, ReactOS
PlatformCross-platform
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

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 from 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. ^ "FreeDOS 1.2 Updates Group - FreeDOS Base". Ibiblio.org. Retrieved 2022-09-08.
  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.
  5. ^ DR DOS 6.0 User Guide Optimisation and Configuration Tips
  6. ^ "FreeDOS 1.2 Updates Package - replace (FreeDOS Base)". Ibiblio.org. 2001-03-25. Retrieved 2022-09-08.
  7. ^ "JaTomes Help - OS/2 Commands". www.jatomes.com. Archived from the original on 2019-04-14.
  8. ^ Microsoft Windows XP - Replace
  9. ^ "Reactos/Replace.c at master · reactos/Reactos". GitHub. 3 January 2022.

Further reading

edit
edit


📚 Artikel Terkait di Wikipedia

Replacement

a replacement, a substitute character replacing a missing from available fonts Replace (command), a command used on DOS, Microsoft Windows and related

Find and replace

programming languages Find and Replace (audio drama) Regular expressions String searching algorithms replace (command), an MS DOS command This disambiguation page

Cmd.exe

related operating systems, DOS and Windows 9x, provided COMMAND.COM as the shell. cmd.exe replaced COMMAND.COM in the Windows product line with the introduction

Command-line interface

is possible to replace the default shell program with alternatives; examples include 4DOS for DOS, 4OS2 for OS/2, and 4NT / Take Command for Windows. Although

Commodore DOS

validate command below), the latter which rebuilds the BAM and removes poison file references from the directory. The infamous save-with-replace bug could

List of DOS commands

does include commands covering the various releases. Each command is implemented either as built-in to the command interpreter, COMMAND.COM, or as an

Pico (text editor)

insensitively, The search and replace command is not available by default, but must be enabled through the -b option in the command line. Moving inside the

Joint All-Domain Command and Control

Joint All-Domain Command and Control, or JADC2, is a concept in active development by the United States Department of Defense to link sensors from all