Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| computer:os:cpm:copy_files [2026/10/03 14:52] – created neotek | computer: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, | + | 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, |
| + | * Start pip< | ||
| + | * Don't forget to swap the floppy disk now. | ||
| + | * copy command< | ||
| + | |||
| + | * Full example: | ||
| < | < | ||
| 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: === | ||
| + | < | ||
| + | A> PIP | ||
| + | *B:=*.* | ||
| + | * | ||
| + | </ | ||
| + | The command was shortened slightly here. The source drive (A:) was not explicitly specified; pip simply copies the files from the current drive. | ||