home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Education
/
collectionofeducationcarat1997.iso
/
COMPUSCI
/
PWP40_1.ZIP
/
COPY.INS
< prev
next >
Wrap
Text File
|
1991-10-27
|
3KB
|
76 lines
COPY Used to DUPLICATE files (Format 1), access
DEVICES (Format 2) and to CONCATENATE (merge)
files (Format 3).
Format: 1) COPY [/*] SourceFile [/*] [DestFile] [/**]
2) COPY [/*] Source [/*] [Dest] [/**]
3) COPY [/*] SFile1+SFile2+..[/*] ConFile [/**]
Note: [/*] = /A /B Switches [/**] = /A /B /V Switches
/A when used with SourceFile, Source, or SFile1,
SFile2, etc. tells DOS to read data up to, but
not including, the first Ctrl-Z (end-of-file)
character and to treat the file as an ASCII file.
/A when used with DestFile, Dest, or Confile tells
DOS to write a Ctrl-Z at the end of the file.
/B when used with SourceFile, Source, or SFile1,
SFile2, etc. tells DOS to copy the entire file
up to, and including, the last Ctrl-Z.
/B when used with DestFile, Dest, or ConFile will
ensure that a Ctrl-Z is NOT written to the file.
/V tells DOS to VERIFY that all of the specified
files were copied successfully.
[Source] and [Dest] parameters can be either file
specifications/names or can specify a DEVICE, such
as CON (monitor) or PRN (printer attached to Lpt1).
[ConFile] is the concatenated file that is created
as a result of merging/concatenting the files that
were specified as SFile1+SFile2+SFile3, etc.
Example: COPY *.* A:
Creates duplicates (copies) of ALL files contained
in the CURRENT directory and places them on the
diskette residing on drive A.
Example: COPY MYFILE.TXT D:\WPBAK\TEXT
Duplicates the file in the CURRENT directory named
MYFILE.TXT and places it in the \WPBAK\TEXT sub-
directory on drive D.
Example: COPY *.TXT *.BAK
Creates duplicates of ALL files that have a .TXT
ext in the CURRENT directory and RENAMES the new
files with a *.BAK extention. (You now have a
complete backup set (.BAK) of all your .TXT files.)
Example: COPY CON TEXTFILE.TXT
Creates a file named TEXTFILE.TXT that contains the
keystrokes that you type onto the monitor screen.
While on a BLANK line, press the F6 key and <ENTER>
and everything appearing on the screen will be
copied to a file named TEXTFILE.TXT.
Example: COPY TEXTFILE.TXT LPT1
Sends the contents of TEXTFILE.TXT to the specified
DEVICE, which in this case is your printer. The
entire contents of this file will now be printed.
Example: COPY CHAP1.TXT+CHAP2.TXT NOVEL.TXT
Creates a new file named NOVEL.TXT that contains ALL
of the data from the CHAP1.TXT and CHAP2.TXT files.