home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / ibm1 / pcwiz01.arj / COPY.INS < prev    next >
Text File  |  1991-09-25  |  3KB  |  76 lines

  1. COPY     Used to DUPLICATE files (Format 1), access
  2.          DEVICES (Format 2) and to CONCATENATE (merge)
  3.          files (Format 3).
  4.  
  5. Format: 1) COPY [/*] SourceFile [/*] [DestFile] [/**]
  6.         2) COPY [/*] Source [/*] [Dest] [/**]
  7.         3) COPY [/*] SFile1+SFile2+..[/*] ConFile [/**]
  8.  
  9. Note:   [/*] = /A /B Switches [/**] = /A /B /V Switches
  10.  
  11.  
  12.    /A  when used with SourceFile, Source, or SFile1,
  13.        SFile2, etc. tells DOS to read data up to, but
  14.        not including, the first Ctrl-Z (end-of-file)
  15.        character and to treat the file as an ASCII file.
  16.  
  17.    /A  when used with DestFile, Dest, or Confile tells
  18.        DOS to write a Ctrl-Z at the end of the file.
  19.  
  20.    /B  when used with SourceFile, Source, or SFile1,
  21.        SFile2, etc. tells DOS to copy the entire file
  22.        up to, and including, the last Ctrl-Z.
  23.  
  24.    /B  when used with DestFile, Dest, or ConFile will
  25.        ensure that a Ctrl-Z is NOT written to the file.
  26.  
  27.    /V  tells DOS to VERIFY that all of the specified
  28.        files were copied successfully.
  29.  
  30.    [Source] and [Dest] parameters can be either file
  31.    specifications/names or can specify a DEVICE, such
  32.    as CON (monitor) or PRN (printer attached to Lpt1).
  33.  
  34.    [ConFile] is the concatenated file that is created
  35.    as a result of merging/concatenting the files that
  36.    were specified as SFile1+SFile2+SFile3, etc.
  37.  
  38. Example:        COPY *.* A:
  39.  
  40.    Creates duplicates (copies) of ALL files contained
  41.    in the CURRENT directory and places them on the
  42.    diskette residing on drive A.
  43.  
  44. Example:        COPY MYFILE.TXT D:\WPBAK\TEXT
  45.  
  46.    Duplicates the file in the CURRENT directory named
  47.    MYFILE.TXT and places it in the \WPBAK\TEXT sub-
  48.    directory on drive D.
  49.  
  50. Example:        COPY *.TXT *.BAK
  51.  
  52.    Creates duplicates of ALL files that have a .TXT
  53.    ext in the CURRENT directory and RENAMES the new
  54.    files with a *.BAK extention. (You now have a
  55.    complete backup set (.BAK) of all your .TXT files.)
  56.  
  57.  
  58. Example:        COPY CON TEXTFILE.TXT
  59.  
  60.    Creates a file named TEXTFILE.TXT that contains the
  61.    keystrokes that you type onto the monitor screen.
  62.    While on a BLANK line, press the F6 key and <ENTER>
  63.    and everything appearing on the screen will be
  64.    copied to a file named TEXTFILE.TXT.
  65.  
  66. Example:        COPY TEXTFILE.TXT LPT1
  67.  
  68.    Sends the contents of TEXTFILE.TXT to the specified
  69.    DEVICE, which in this case is your printer. The
  70.    entire contents of this file will now be printed.
  71.  
  72. Example:    COPY CHAP1.TXT+CHAP2.TXT NOVEL.TXT
  73.  
  74.    Creates a new file named NOVEL.TXT that contains ALL
  75.    of the data from the CHAP1.TXT and CHAP2.TXT files.
  76.