Commodore 2040 User Manual page 34

Cbm 5 1/4-inch dual floppy disk drives
Hide thumbs Also See for 2040:
Table of Contents

Advertisement

or
PRINT#1fn,"Cddr :dfn=sdr:sfn"
To concatenate and copy:
PRINT#1fn,"COPYddr:dfn=sdr:sfn,sdr:sfn ...
or
PRINT#1fn,"Cddr:dfn=sdr :sfn,sdr :sfn ...
To copy all files on a
diskette:
or
PRINT#1fn,"COpyddr=sdr"
PRINT#1fn,"Cddr=sdr"
Where: ddr=is the destination drive. The file is to be copied onto the diskette in this
drive. This may be the same or different from the source drive.
dfn=is the destination file name. This name may be either a new name or the
same as the old file name unless the ddr is the same as the sdr.
If
both files
are to exist on the same diskette, they must have different names.
In example 1, a file is copied from the diskette in drive 1 to the diskette in drive O. In
example 2, files from both drives are concatenated into a file on drive
1.
In example 3, all
files from drive 0 are copied to drive
1. An
error message FILE EXISTS will be generated in
the disk unit if a file to be copied already exists on the destination drive (drive 1 in this
example).
Example 1:
PRINT#I,"Cl :ACCTI=0 :ACCT"
A file is copied from the diskette in drive 1 to drive O.
Example 2:
PRINT#I,"Cl:JDATA=I:ACCTl,O:ADATA,O:BDATA"
Files from both drives are concatenated into a file on drive
1.
Note that file names should
be short, as the maximum length of a disk command string is 40 characters.
Example 3:
PRINT#I,"Cl=0"
30
All files from drive 0 are copied to drive
1.
Example 3 illustrates one way to upgrade from a 2040 or 3040 formatted diskette to a 4040
format: place a formatted diskette in drive 1 and the diskette to be upgraded in drive 0 and
copy all files from 0 onto
1.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

304040408050

Table of Contents