XRPi Home

Documentation Index
Alphabetic Index

XRPi Documentation - PZTDOS Commands

COPY

Command

COPY -- Copy file(s).

Synopsis

COPY <source> [dest]

Description

The COPY command copies the file(s) specified by the pathname <source> into the file(s) or directory specified by [dest].

<source> may be a directory, a single file, or multiple files specified using wildcards, and may contain a drive and path spec. If <source> is a directory, all the files in that directory will be copied. If <source> contains wildcards, all matching files will be copied. If <source> is "CON" (console) any further input from the keyboard goes into the file until receipt of Ctrl-Z or /EX on a fresh line.

[dest] may be a directory, a single file, or blank. If [dest] is a directory, the source file(s) are copied into it as seperate files. If [dest] is a single file, the source file(s) are concatenated into it. If [dest] is not specified, the file is copied into the working directory and retains the original filename.

Examples

COPY ..\MYPROG.EXE  /progs/TESTPROG.EXE  
COPY xrpi-backup/FWD.SYS                      
COPY *.HLP HELP.DOC
COPY CON fred.txt

Portability

Normal dos syntax is followed, except that concatenation using the "+" operator is not supported.

Unlike XR16/32, in XRPi this command does not support "drive letters", and pathnames (but not commands) are case-sensitive.

Availability

This command is available only in PZTDOS mode, which is restricted to sysops only.

Note

Overwrites destination files without warning.

See also

DOS(2) -- Enter PZTDOS mode