home *** CD-ROM | disk | FTP | other *** search
- DEVICE NAMES
-
- The COPY internal command can be used to copy files from or to the standard
- device names. The /A option is assumed. Device names and their meanings are
- given in the NEW_TERMS DEVICE_NAMES topic. Device names frequently used with
- COPY are PRN:, CON:, and NUL:. (The trailing ":" is optional.)
-
- COPY CON: [d2:][pathname2][filename2[.ext2]][/A][/B][/V]
- COPY [d1:][pathname1]filename1[.ext1][/A][/B] CON:
- COPY [d1:][pathname1]filename1[.ext1][/A][/B] PRN:
- COPY [d1:][pathname1]filename1[.ext1][/A][/B] [d2:]NUL:
- COPY CON: PRN:
-
- [d1:][pathname1]filename1[.ext1] is the source file.
-
- CON: as the source device will cause all entries from the keyboard to be
- copied to the destination file or device name until an end-of-file
- character (Ctrl-Z) is typed.
-
- NUL: as the source device will be treated as a 0-length source file.
-
- [d2:][pathname2][filename2[.ext2]] is the destination file.
-
- PRN: as the destination device will cause the source file or device to be
- copied to the printer.
-
- CON: as the destination device will cause the source file or device to be
- copied to the screen.
-
- NUL: as the destination device will be treated as a write-only file. It can
- be used to read a source file (or files) rapidly, with the output going
- nowhere. d2, the destination disk drive, should not be the same as d1,
- the source disk drive, as most DOS systems won't really read the source
- files if d1 and d2 are the same.