Copy (Basic 4.0 Direct Command); Concat (Basic 4.0 Direct Command); Rename; Rename Command - Commodore 2031 User Manual

Hide thumbs Also See for 2031:
Table of Contents

Advertisement

COPY - (BASIC 4.0 Direct Command)
The COPY direct command in BASIC 4.0 performs the same function as COPY
disk command and its format is also dependent upon application.
Use this format to copy a single file:
COPY Dsdr,"sfn" to Dddr,"dfn" ON Udn
Where sdr = the source diskette (0)
ddr = destination diskette (0)
fn = file name
Again, notice that the source (sdr) and the destination (ddr) are the same.

CONCAT (BASIC 4.0 Direct Command)

The CONCAT direct command is BASIC 4.0 permits the user to concatenate
files.
The format for CONCAT is:
CONCAT Dsdr,"sfn" TO Dddr,"dfn" ON Udn
The file named dfn on drive ddr will contain the contents of both dfn and sfn
after the concatenation. For example:
CONCAT D0,"YOURFILE" TO D0,"MYFILE"
This will result in MYFILE, containing the data from the old MYFILE, and
YOURFILE being concatenated. YOURFILE will remain unchanged.
The concatenation feature of COPY disk command
and CONCAT direct command are valid only for
DOS 2.
For further information regarding use of BASIC COPY and CONCAT com-
mands, refer to the Commodore BASIC 4.0 Reference Manual.

RENAME

The RENAME command renames an existing file. A file can not already exist
with the file name specified in the command or the FILE EXISTS error message
will be generated.
24
NOTE

Advertisement

Table of Contents
loading

Table of Contents