Difference between revisions of "COPY"

From VSI OpenVMS Wiki
Jump to: navigation, search
 
Line 1: Line 1:
COPY is a [[DCL]] [[Command|command]] that creates a new file from one or more existing files. The COPYcommand can do the following:
+
COPY is a [[DCL]] [[Command|command]] that creates a new file from one or more existing files. The COPY command can do the following:
 
* Copy an input file to an output file.
 
* Copy an input file to an output file.
 
* Concatenate two or more input files into a single output file.
 
* Concatenate two or more input files into a single output file.
Line 10: Line 10:
 
=Syntax=
 
=Syntax=
 
  COPY  input-filespec[,...] output-filespec
 
  COPY  input-filespec[,...] output-filespec
 +
 
==Qualifiers==
 
==Qualifiers==
 
* /ALLOCATION
 
* /ALLOCATION

Latest revision as of 12:58, 6 February 2023

COPY is a DCL command that creates a new file from one or more existing files. The COPY command can do the following:

  • Copy an input file to an output file.
  • Concatenate two or more input files into a single output file.
  • Copy a group of input files to a group of output files. You can also specify certain qualifiers to invoke other utilities: o Use /FTP to invoke the FTP utility to transfer files between hosts with possibly dissimilar file systems over a TCP/IP connection.
  • Use /RCP to invoke the RCP utility to copy files from host to host over a TCP/IP connection.
  • Use /RECORDABLE_MEDIA to invoke the CDDVD utility to copy files from host/container file to CD-R/RW or DVD+R/RW.

COPY is invoked with SYS$SYSTEM:COPY.EXE.

Syntax

COPY  input-filespec[,...] output-filespec

Qualifiers

  • /ALLOCATION
  • /BACKUP
  • /BEFORE
  • /BLOCK_SIZE
  • /BY_OWNER
  • /CONCATENATE
  • /CONFIRM
  • /CONTIGUOUSCREATED
  • /EXCLUDE
  • /EXPIRED
  • /EXTENSION
  • /LOG
  • /MODIFIED
  • /OVERLAY
  • /PROTECTION
  • /READ_CHECK
  • /REPLACE
  • /SINCE
  • /STYLE
  • /SYMLINK
  • /TRUNCATE
  • /VOLUME
  • /WRITE_CHECKP
  • /RCP
  • /RECORDABLE_MEDIA