Share on Facebook Share on Twitter Email
Answers.com

Copy

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

See also

References


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
Shopping: Copy
Top
 
 
Learn More
template
deep copy (technology)
ectype

What is the synonym for copy? Read answer...
Why do people copy you? Read answer...
Can you copy banknotes? Read answer...

Help us answer these
Where can you get a copy of a will?
How do you get a copy of will?
How do you get a copy of your will?

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Copy (command)" Read more