| copy | |
|---|---|
TheReactOS copy command | |
| Developers | DEC,Intel,MetaComCo,Heath Company,Zilog,Microware,HP,Microsoft,IBM,DR,TSL,Datalight,Novell,Toshiba |
| Operating system | RT-11,OS/8,RSX-11,ISIS-II,iRMX 86,TOPS-10,TOPS-20,OpenVMS,TRIPOS,HDOS,DOS,MSX-DOS,FlexOS,4680 OS,4690 OS,PC-MOS,Z80-RIO,OS-9,MPE/iX,OS/2,Windows,ReactOS,SymbOS, DexOS |
| Type | Command |
| License | HDOS:PD MS-DOS:MIT PC-MOS:GPL v3 ReactOS:GPL v2 |
copy is ashellcommand forcopyingfiles.[1][2]
Different implementations provide various capabilities, such as:
copypath con outputs the file atpath to the console, andcopy conpath copies text typed at the console to a file atpathThe command is available inRT-11,[3]OS/8,[4]RSX-11,[5]ISIS-II,[6]iRMX 86,[7]TOPS-10,[8]TOPS-20,[9]OpenVMS,[10]MetaComCoTRIPOS,[11]HDOS,[12]Z80-RIO,[13]OS-9,[14]DOS,FlexOS,[15]4690 OS,[16]PC-MOS,[17]HPMPE/iX,[18]OS/2,[19]Windows,[20]ROM-DOS,[21]ReactOS,[22]SymbOS, DexOS, and86-DOS.[23]
UnderIBM PC DOS/MS-DOS the command is available since version 1.[24]
Some shells provide a copy command with a different name. InUnix-based systems, the copy command iscp. InCP/M, the command isPIP. inOpenVOS, the command iscopy_file.[25]
The following copies existing filefromfile to pathtofile.
copy fromfile tofile
A file can be copied to a device. The following sends a file to theprinter on lpt1.
copy letter.txt lpt1
The following outputs tostdout, like thetype command.
copy letter.txt con
The followingconcatenates the page# files intobook.txt – likecat.
copy page1.txt+page2.txt book.txtThe command can copy files between drives.
The following uses text mode to copy text of the file; stopping when it reaches an EOF character.
copy /a doc1.txt + doc2.txt doc3.txtcopy /a *.txt doc3.txt
The following uses binary mode; concatenating files in their entirety; ignoring EOF characters.
copy /b image1.jpg + image2.jpg image3.jpg