CPMCP(1)
π CPMCP(1) β like, the copy-files-between-here-and-a-CP/M-disk manual π
okay bestie, welcome to the CP/M tools girlies' club π this is the manual page for cpmcp, a user command, and I'm gonna walk you through it like we're texting at 1am. no cap, every flag is here. periodt.
β¨ NAME β¨
cpmcp β copy files from and to CP/M disks π¦
like, it's a two-way street. files go in, files come out, the disk stays iconic.
πΈ SYNOPSIS πΈ
cpmcp [-f format] [-p] [-t] image [-u] user:file ... directory
cpmcp [-f format] [-p] [-t] image [-u] file user:file
cpmcp [-f format] [-p] [-t] image [-u] file ... user:
four whole shapes of the same vibe, pick whichever one matches what you're doing π
π« DESCRIPTION π«
so cpmcp copies one or more files to or from a CP/M disk. that's the whole main character moment.
when you're copying multiple files, the last argument has to be a drive or a directory. no exceptions, bestie.
the drive letter does not matter because the device is specified by the image β the letter is literally just there to tell cpmcp which direction you wanna copy. that's it. that's its whole job. π
the user number comes after the drive letter, and if you just⦠don't include it, user 0 is used. default behaviour, we love her.
you can use * and ? in CP/M file names, and they mean the same thing they mean in sh(1) file name patterns. so if you already know your globbing, you're set π§
okay now the spicy part. on CP/M, the slash is a legal file name character. π so when you copy those files over to the host, it gets translated to a comma. and filenames that have a comma get translated back to a slash on CP/M. it's giving translation era. and it's no restriction at all, because a comma is not a legal CP/M filename character. so nobody's ever gonna collide. slay.
π OPTIONS π
-f formatβ use the given CP/M disk format instead of the default format. you're overriding destiny β¨-T libdsk-typeβ libdsk driver type, liketelefor Teledisk images orrawfor raw images. heads up: this one requires building cpmtools with support for libdsk, so if you didn't, it's not gonna happen for you π-pβ preserve time stamps when copying files from CP/M to UNIX. not implemented for copying the other way so far, so it's a one-directional queen π«Ά-tβ convert text files between CP/M and UNIX conventions. line endings deserve love too π-uβ show all CP/M file names in upper case. LOUD AND PROUD π£
π RETURN VALUE π
upon successful completion, exit code 0 is returned. that's the good ending. we ate. π₯
π ERRORS π
any errors are indicated by exit code 1. it's giving "not me getting an error" but hey, at least it's honest.
π± ENVIRONMENT π±
CPMTOOLSFMTβ default format. she's the fallback when you don't pass-fπ
π FILES π
/etc/cpmtools/diskdefsβ CP/M disk format definitions. this is where all the disk lore lives.
π AUTHORS π
this program is copyright 1997β2021 Michael Haardt <michael@moria.de>. π
the Windows port is copyright 2000, 2001, 2011 John Elliott <jce@seasip.demon.co.uk>.
this program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License for more details.
you should have received a copy of the GNU General Public License along with this program. if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
(so basically: it's free, it's open, and it comes with absolutely zero promises. read the license, bestie, it's not long and it's kinda iconic.)
π¦ SEE ALSO π¦
okay that's the whole page!! go copy some files, you're gonna do amazing π β¨
signing off with love from the CP/M tools girlies, version of November 2, 2022 π©· byeeee π
π¦ where this page comes from
- debian bookworm: cpmtools 2.23-4
- debian trixie: cpmtools 2.23-7
- ubuntu noble: cpmtools 2.23-5build1
- ubuntu questing: cpmtools 2.23-7
- ubuntu resolute: cpmtools 2.23-7build1
- ubuntu stonking: cpmtools 2.23-7build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms