home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / copy / examples / device.hlp < prev    next >
Encoding:
Text File  |  1989-01-01  |  1.5 KB  |  35 lines

  1.                          DEVICE NAMES
  2.  
  3. The COPY internal command can be used to copy files from or to the standard 
  4. device names. The /A option is assumed. Device names and their meanings are 
  5. given in the NEW_TERMS DEVICE_NAMES topic. Device names frequently used with 
  6. COPY are PRN:, CON:, and NUL:. (The trailing ":" is optional.)
  7.  
  8.     COPY CON: [d2:][pathname2][filename2[.ext2]][/A][/B][/V]
  9.     COPY [d1:][pathname1]filename1[.ext1][/A][/B] CON:
  10.     COPY [d1:][pathname1]filename1[.ext1][/A][/B] PRN:
  11.     COPY [d1:][pathname1]filename1[.ext1][/A][/B] [d2:]NUL:
  12.     COPY CON: PRN:
  13.  
  14. [d1:][pathname1]filename1[.ext1] is the source file.  
  15.  
  16. CON: as the source device will cause all entries from the keyboard to be
  17.     copied to the destination file or device name until an end-of-file
  18.     character (Ctrl-Z) is typed. 
  19.  
  20. NUL: as the source device will be treated as a 0-length source file.
  21.  
  22. [d2:][pathname2][filename2[.ext2]] is the destination file. 
  23.  
  24. PRN: as the destination device will cause the source file or device to be
  25.     copied to the printer. 
  26.  
  27. CON: as the destination device will cause the source file or device to be
  28.     copied to the screen.
  29.  
  30. NUL: as the destination device will be treated as a write-only file. It can
  31.     be used to read a source file (or files) rapidly, with the output going
  32.     nowhere. d2, the destination disk drive, should not be the same as d1,
  33.     the source disk drive, as most DOS systems won't really read the source
  34.     files if d1 and d2 are the same.
  35.