Copy (command)

Copy (command)

In computing, copy is a command in RT-11, RSX-11, OpenVMS, DOS, OS/2 and Microsoft Windows operating systems. The command copies computer files from one directory to another. The destination defaults to the current working directory. If more than one source file is indicated, the destination must be a directory. The equivalent Unix command is cp.

Example

copy "letter.txt" ["destination"]

Files may be copied to device files (e.g. copy letter.txt lpt1 sends the file to the printer on lpt1. copy letter.txt con would output to stdout, like the type command. Note that copy page1.txt+page2.txt book.txt will concatenate the files and output them as book.txt. Which is just like the cat command.

There are two command-line switches to modify the behaviour when concatenating files:

* "Text mode" - This copies the text content of the file, stopping when it reaches the EOF character.

copy /a doc1.txt + doc2.txt doc3.txt

* "Binary mode" - This concatenates files in their entirety, ignoring EOF characters.

copy /b image1.jpg+ image2.jpg image3.jpg

ee also

*List of DOS commands
*List of Unix programs
*Peripheral Interchange Program

References

* [http://technet.microsoft.com/en-us/library/bb490886.aspx Microsoft TechNet Copy article]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • copy (command) — In computing, copy is a command in RT 11, RSX 11, OpenVMS, DOS, OS/2 and Microsoft Windows operating systems. The command copies computer files from one directory to another. The destination defaults to the current working directory. If more than …   Wikipedia

  • Copy — may refer to: to copy a word from a book to a paper or laptop or computer Copying or the product of copying (including the plural copies ); the duplication of information or an artifact. Cut, copy, and paste, a method of reproducing text or other …   Wikipedia

  • COMMAND.COM — Developer(s) Seattle Computer Products, Microsoft Corporation, IBM, Novell and several others. Operating system DR DOS, FreeDOS, MS DOS, Novell DOS, OpenDOS, PC DOS, PTS DOS, ROM DOS, 86 DOS, Microsoft Windows (Windows 95 Wi …   Wikipedia

  • Command & Conquer: Red Alert 3 — Red Alert 3 cover art Developer(s) EA Los Angeles Publisher(s) Elect …   Wikipedia

  • Command & Conquer 4: Tiberian Twilight — Developer(s) EA Los Angeles Publisher(s) Electronic Arts …   Wikipedia

  • Command & Conquer 3: Kane's Wrath — Developer(s) EA Los Angeles BreakAway Games[1] Publisher(s) …   Wikipedia

  • Command.com — Saltar a navegación, búsqueda command.com es el nombre del intérprete de comandos para DOS y versiones de Windows de 16/32bits (95/98/98 SE/Me). Al ser el primer programa que se ejecuta después del inicio, posee también el rol de la configuración …   Wikipedia Español

  • Command.com — Le programme COMMAND.COM est l interpréteur de commandes du système MS DOS. On ne le confondra pas avec cmd.exe, qui est l interpréteur de commande de Windows NT (Windows 2000, Windows XP...) et d OS/2. Les commandes de cmd.exe sont inspirées,… …   Wikipédia en Français

  • command.com — Desarrollador Seattle Computer Products, Microsoft Corporation, IBM, Novell y otros Información general Género Shell …   Wikipedia Español

  • Command Prompt — For other uses, see Command prompt (disambiguation). CMD redirects here. For other uses, see CMD (disambiguation). Command Prompt A component of Microsoft Windows …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”