DIRECTORY TO PRINTER

See all articles from Sinc-Link v8 n5
Author(s): Butch Weinberg
Publication: Sinc-Link
Pub Details: Sinc-Link v8 n5 (Volume 8, Issue 5)
Date: September/October 1990
Pages: 25

PDS DOC

Well, as promised, here is some information on my “pri_dir” program in the CATUG Public Domain library.

“Pri_dir” is a simple utility written in QL SuperBASIC that allows you to send a directory of the contents your disks directly to your printer. It is for people like me who are lazy or who can’t type and want to have printed directories of their magnetic storage.

10 OPEN#3, ser1
20 DIR#3; flp2_
25 PRINT#3
30 PRINT#0;'MORE?'
40 more$=INKEY$(-1)
50 IF more$='y' OR more$='Y' THEN GO TO 20 :ELSE
60 PRINT#3, CHR$(12);: CLOSE#3: STOP

If you wish to make directories from one of your microdrives, then change the device name in ‘Line 20’ to “mdv1_” or “mdv2_” as appropriate. Of course, you could add a PROcedure which allows for more convenient storage device selection.

Feel free to further alter it, but don’t sell it!

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.