copy device

SYNTAX:
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.