copy device command

copy device filename
- In this usage, data is written from the given device to the file until the end-of-file character (ASCII character 26, which may be typed as ctrl-Z) is encountered. The most commonly used device is named con, which is short for "console"; thus,
copy con filename would allow the user to type directly into a file, and press ctrl-Z when finished.
- In Unix, this functionality is provided by the
cat command. cat > filename (with ctrl+D to finish) would be equivalent to the DOS command copy con filename.
Command Prompt Commands » copy device |