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

Hide thumbs Also See for 2031:
Table of Contents

Advertisement

The format for RENAME is:
Where:
The letter R is a legal abbreviation for RENAME.
The RENAME direct command in BASIC 4.0 performs the same function as
RENAME disk command.
The format is:
RENAME Ddr,"ofn" TO "nfn" (Ddr=0) ON Udn
Close any open files before using the RENAME
command since the disk will not execute this com-
mand on any active files.
For further information on the RENAME command, please refer to the Com-
modore BASIC 4.0 Reference Manual.
The SCRATCH command erases unwanted files from the specified diskette and
its directory. You can erase one file, several files, or all the files on a
diskette.
The format for SCRATCH is:
Where:
PRINT#1fn,"RENAMEdr:nfn=ofn"
dr = the disk drive on which the diskette is located (0).
nfn = the new name of the file.
ofn = the old name of the file.
1fn = a logical file number. You assign this number
arbitrarily and it may be any whole number between 1
and 255.
NOTE
NOTE
PRINT#1fn,"Sdr:fn,dr:fn...dr:fn"
dr = is the disk drive to be searched (0).
fn = is the name of the file to be erased.
RENAME - (BASIC 4.0 Direct Command)
SCRATCH
25

Advertisement

Table of Contents
loading

Table of Contents