EasyManua.ls Logo

Commodore 2031 - Copy

Commodore 2031
98 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
COPY
The COPY command allows you to reproduce files on the diskette or to create
multiple copies (under different names). This command can also be used to
concatenate data files. Up to four files can be concatenated into the destination
file. The COPY command may be abbreviated with a C.
COPY disk command can be formatted three ways depending upon application.
To copy a single file: PRINT#1fn,"COPYddr:dfn=sdr:sfn"
or
PRINT#1fn,"Cddr:dfn=sdr:sfn"
NOTE
The source (sdr) and the destination (ddr) drives are
the same.
To concatenate and copy PRINT#1fn,"Cddr:dfn=sdr:sfn,sdr:sfn...
Where: ddr = is the destination drive (0).
dfn = is the destination file name. This name
must be different than the old file name
since both files will reside on the same
diskette.
In example 1, a file is reproduced on the diskette. In example 2, two files are
concatenated into one file. An error message (FILE EXISTS) will be generated
in the disk unit if a file to be copied already exists on the diskette.
Example 1: PRINT#1,"C0:ACCT1=0:ACCT"
A file is reproduced on the diskette.
Example 2: PRINT#1,"C0:JDATA=0:ADATA,0:BDATA"
Two files are concatenated into one file. Note that file names should be short
since the maximum length of a disk command string is 58 characters.
23

Table of Contents

Other manuals for Commodore 2031

Related product manuals