Printing The Directory; Validate T - Commodore vic-1540 User Manual

Table of Contents

Advertisement

Printing The Directory
Quite often, it becomes convenient to affix a diskette directory listing directly
on the protective jacket. This permits the user to scan the printed directory
listing without having to insert the diskette into the drive to obtain this in
formation. Should you desire to print the directory, place the diskette in the
drive and enter the following commands:
LOAD "$", 8
Loads the directory.
OPEN 4, 4:CMD4
Opens device 4 (printer) and changes
the primary output device to 4.
LIST
Prints the directory.
PRINT#4:CLOSE4
Returns output to the screen and closes the file.
VALIDATE
The VALIDATE command traces through each block of data contained in
all files on the diskette. If this trace is successful, a new BAM is generated
in the disk memory and written to the diskette. Any blocks which have been
allocated but are not associated with a file name, as in the case of direct access
files will be freed for use.
In addition to reconstructing the BAM, VALIDATE deletes files from the
directory that were never properly closed. If a READ error is encountered
during a VALIDATE, the operation aborts and leaves the diskette in its pre
vious state. If a VALIDATE error does occue, you must re-initialize before
proceeding.
The format of VALIDATE is:
PRINT#15, "VALIDATEdr"
Where: dr=drive number 0 (0 may be ommited)
NOTE: You may abbreviate VALIDATE to V.
Example:
OPEN 1,8,15
PRINT#l,"V0"
21

Advertisement

Table of Contents
loading

Table of Contents