home *** CD-ROM | disk | FTP | other *** search
- COMMAND: COPY (Copy Files)
-
- FUNCTION: Copies files between devices or sub-directories and allows copied
- files to be concatenated or renamed.
-
- FORMAT: see below
-
- TYPE: DOS internal command
-
- REMARKS: Option 1 - Copy with Same Name
-
- COPY [/A][/B] [d:][path]filename[.ext] [d:[path]]
-
- The specified source files are copied to the current or specified
- target drive or directory without changing the names of the files.
-
- Option 2 - Copy with Different Name
-
- COPY [/A][/B] [d:][path]filename[.ext] [/A][/B]
- [d:][path]filename[.ext] [/A][/B][/V]
-
- The specified source files are copied to the current or specified
- target drive or directory and their names are changed to that of the
- target filespec.
-
- Option 3 - Copy and Combine Files
-
- COPY [/A][/B] [d:][path]filename[.ext][/A][/B]
- [+[[,,]d:][path]filename[.ext][/A][/B] ... ]
- [d:][path][filename[.ext]][/A][/B][/V]
-
- The specified source files are concatonated and copied to the
- specified target file in the default or specified directory. If no
- target file is specified the additional files are added to the end
- of the first source file. In either case, the result file is
- stamped with the current date and time. The special case of one
- source file followed by + causes the file to be copied to the
- default drive and path and causes its date-time-stamp to be
- changed to the current date and time. The special case of a source
- file followed by +,, and the drive and path it is on simply causes
- the date-time-stamp of the file to be changed.
-
- /A with a source filespec causes the file to be copied up to but not
- including the first EOF mark, while with a target filespec, an EOF
- mark is added to the end of the file.
- /B causes the entire file to be copied with no EOF marks added.
- Both the /A and /B parameters apply to the filespec preceeding it
- and to all succeeding filespecs until another /A or /B is found.
- /V causes DOS to verify that the sectors written to the target
- disk are recorded properly, as is done by the VERIFY command.
-
- The default values are /A when concatenating, and /B when not.
- Global file name characters are allowed in specifying source files.
- To copy from the keyboard(display) to a file, use the source
- name CON:. When global file name characters are used, the name of
- each file is listed as it is copied. If the destination file name
- already exists it is overwritten.