Disk Commands - Commodore 64 Handbook

Table of Contents

Advertisement

Disk commands
DISKETTE COMMAND SUMMARY BASIC 4.0
APPEND £< fi 1 e number >,"<name >":,D<x >;:ON U<y >;
Append data to the end o - f a sequential
file.
BACKUP D<x > TO D<y> sON U<z >;
Duplicate entire contents of one disk
onto another.
CATALOG/DIRECTORY :D<x>;:0N U<y>;
Display disk directory on screen.
COLLECT :D<x
>52
ON U<y>;
Release space allocated to improperly
closed files.
CONCAT :D<x>,;"<namel>" TO :D<y>,;"name2>":ON U<z>;
Concatenate sequential files.
COPY : D<x >,;
11
<name 1 >" TO : D<y >, ; "<name2>" : ON U<z>;
Make a copy of a file within a disk unit.
DCLOSE :£<1>; :ON U<x>;
Close disk files.
DLOAD "<name >": ,D<x >; :ON U< y >;
Load BASIC program file from disk.
DOPEN £<1>,"<name>":,L<y>;:,D<x>; :ON U<z>; :,W;
Declare a sequential or random access
file for read or write.
DSAVE "< name >": ,D<x >
5
:ON U< y >;
Save a BASIC program file to disk.
HEADER "<disk name>",D<x >:,I<zz >; :ON U<y>;
To format a blank disk or clear an old
disk.
RECORD £<logical fi1e > ,Crecord>:,<byte>;
Used before GET£,INPUT£ or PRINT£ to
position record pointer in a random
access file.
RENAME :D<x>.;"<old name>" TO "<new name)" sON U<y>3
Change the name of a disk file.
SCRATCH "<name>":,Dx; :ON U<y>;
Delete a disk file.
19

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents