HP Sander 16500C Reading the disk with the CATalog? ALL query, CATALOG? ALL query with DOS disks

Models: Sander 16500C

1 252
Download 252 pages 12.2 Kb
Page 244
Image 244

Programming Examples

Reading the disk with the CATalog? ALL query

 

 

Reading the disk with the CATalog? ALL query

 

 

The following example program reads the catalog of the currently selected

 

 

disk drive. The CATALOG? ALL query returns the entire 70-character field.

 

 

Because DOS directory entries are 70 characters long, you should use the

 

 

CATALOG? ALL query with DOS disks.

10

!

****** DISK CATALOG ******

20

!

using the CATALOG? ALL query

30

!

 

40DIM File$[100]

50DIM Specifier$[2]

60OUTPUT 707;":EOI ON"

70OUTPUT 707;":SYSTEM:HEADER OFF"

80OUTPUT 707;":MMEMORY:MSI INTERNAL0" ! select the hard drive

90OUTPUT 707;":MMEMORY:CATALOG? ALL" ! send CATALOG? ALL query

100!

110

ENTER 707

USING "#,2A";Specifier$

! read in #8

120

ENTER 707

USING "#,8D";Length

! read in block length

130

!

 

 

140! Read and print each file in the directory

150!

160FOR I=1 TO Length STEP 70

170ENTER 707 USING "#,70A";File$

180PRINT File$

190NEXT I

200

ENTER 707 USING "A";Specifier$

! read in final line feed

210

END

 

15–10

Page 244
Image 244
HP Sander 16500C manual Reading the disk with the CATalog? ALL query, CATALOG? ALL query with DOS disks, 15-10