www.neotek.ch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
computer:os:cpm:copy_files [2026/10/03 14:52] – created neotekcomputer:os:cpm:copy_files [2026/10/03 17:13] (current) – neotek
Line 3: Line 3:
 In CPM, files are copied using the pip command; here's a brief overview. In CPM, files are copied using the pip command; here's a brief overview.
  
-====  +==== examples ==== 
-copy a file from floppy disk A: to floppy disk B:+=== copy a file from floppy disk A: to floppy disk B: ===
  
-The problem here is that PIP must be loaded from diskette A before it can copy a file. This requires the CP/M diskette to be inserted in drive A:. Consequently, you cannot simply insert the source diskette and enter the copy command; you must start PIP first and then insert the source diskette.  After starting, PIP displays the version number and an asterisk (*), awaiting input.+The problem here is that PIP must be loaded from diskette A before it can copy a file. This requires the CP/M diskette to be inserted in drive A:. Consequently, you cannot simply insert the source diskette and enter the copy command; you must start PIP first and then insert the source diskette.  After starting, PIP displays the version number and an asterisk (*) as the prompt, awaiting input.
  
 +  * Start pip<code>A> PIP</code>
 +  * Don't forget to swap the floppy disk now.
 +  * copy command<code>*B:DSTFILE.TXT=A:SRCFILE.TXT</code>
 +
 +  * Full example:
 <code> <code>
 A> PIP A> PIP
Line 20: Line 25:
 The command is a bit unconventional to use: the destination file comes first, followed by the source file. Still, this is the standard across CP/M, and one gets used to it. The command is a bit unconventional to use: the destination file comes first, followed by the source file. Still, this is the standard across CP/M, and one gets used to it.
  
 +=== copy every file from floppy A: to floppy B: ===
  
 +<code>
 +A> PIP
 +*B:=*.*
 +*
 +</code>
  
 +The command was shortened slightly here. The source drive (A:) was not explicitly specified; pip simply copies the files from the current drive.
computer/os/cpm/copy_files.1791039179.txt.gz · Last modified: 2026/10/03 14:52 by neotek