1CPMCP(1)                         User commands                        CPMCP(1)
2
3
4

NAME

6       cpmcp - copy files from and to CP/M disks
7

SYNOPSIS

9       cpmcp [-f format] [-p] [-t] image [-u] user:file file
10       cpmcp [-f format] [-p] [-t] image [-u] user:file ... directory
11       cpmcp [-f format] [-p] [-t] image [-u] file user:file
12       cpmcp [-f format] [-p] [-t] image [-u] file ... user:
13

DESCRIPTION

15       cpmcp  copies  one  or more files to or from a CP/M disk.  When copying
16       multiple files, the last argument must be a drive  or  directory.   The
17       drive letter does not matter because the device is specified by the im‐
18       age, it is only used to specify which direction you want to copy.   The
19       user  number  is specified after the drive letter, if omitted user 0 is
20       used.
21
22       You can use * and ? in CP/M file names, which have the same meaning  in
23       sh(1) file name patterns.
24
25       On  CP/M,  the slash is a legal file name character.  When copying such
26       files to the host, it is translated to a comma.  Filenames with a comma
27       have  that translated back to a slash on CP/M.  That is no restriction,
28       because a comma is not a legal CP/M filename character.
29

OPTIONS

31       -f format
32              Use the given CP/M disk format instead of the default format.
33
34       -T libdsk-type
35              libdsk driver type, e.g. tele for Teledisk images or raw for raw
36              images (requires building cpmtools with support for libdsk).
37
38       -p     Preserve  time  stamps when copying files from CP/M to UNIX (not
39              implemented for copying the other way so far).
40
41       -t     Convert text files between CP/M and UNIX conventions.
42
43       -u     Show all CP/M file names in upper case.
44

RETURN VALUE

46       Upon successful completion, exit code 0 is returned.
47

ERRORS

49       Any errors are indicated by exit code 1.
50

ENVIRONMENT

52       CPMTOOLSFMT     Default format
53

FILES

55       /usr/share/cpmtools/diskdefs  CP/M disk format definitions
56

AUTHORS

58       This program is copyright 1997–2021 Michael Haardt  <michael@moria.de>.
59       The   Windows   port   is  copyright  2000,  2001,  2011  John  Elliott
60       <jce@seasip.demon.co.uk>.
61
62       This program is free software; you can redistribute it and/or modify it
63       under  the  terms of the GNU General Public License as published by the
64       Free Software Foundation; either version 3 of the License, or (at  your
65       option) any later version.
66
67       This  program  is  distributed  in the hope that it will be useful, but
68       WITHOUT ANY  WARRANTY;  without  even  the  implied  warranty  of  MER‐
69       CHANTABILITY  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
70       Public License for more details.
71
72       You should have received a copy of the GNU General Public License along
73       with  this  program.   If  not,  write to the Free Software Foundation,
74       Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
75

SEE ALSO

77       cpmls(1), cpm(5)
78
79
80
81CP/M tools                     November 2, 2022                       CPMCP(1)
Impressum