cpmcp - copy files from and to CP/M disks
Contents
Description
cpmcp copies one or more files to or from a CP/M disk. When copying multiple files, the last argument
must be a drive or directory. The drive letter does not matter because the device is specified by the
image, it is only used to specify which direction you want to copy. The user number is specified after
the drive letter, if omitted user 0 is used.
You can use * and ? in CP/M file names, which have the same meaning in sh(1) file name patterns.
On CP/M, the slash is a legal file name character. When copying such files to the host, it is translated
to a comma. Filenames with a comma have that translated back to a slash on CP/M. That is no
restriction, because a comma is not a legal CP/M filename character.
Environment
CPMTOOLSFMT Default format
Errors
Any errors are indicated by exit code 1.
Files
/etc/cpmtools/diskdefs CP/M disk format definitions
Name
cpmcp - copy files from and to CP/M disks
Options
-fformat
Use the given CP/M disk format instead of the default format.
-Tlibdsk-type
libdsk driver type, e.g. tele for Teledisk images or raw for raw images (requires building
cpmtools with support for libdsk).
-p Preserve time stamps when copying files from CP/M to UNIX (not implemented for copying the other
way so far).
-t Convert text files between CP/M and UNIX conventions.
-u Show all CP/M file names in upper case.
Return Value
Upon successful completion, exit code 0 is returned.
See Also
cpmls(1), cpm(5) CP/M tools November 2, 2022 CPMCP(1)
Synopsis
cpmcp [-fformat] [-p] [-t] image [-u] user:filefilecpmcp [-fformat] [-p] [-t] image [-u] user:file ... directorycpmcp [-fformat] [-p] [-t] image [-u] fileuser:filecpmcp [-fformat] [-p] [-t] image [-u] file ... user:
