--- title: "DIRECTORY TO PRINTER" type: "article" slug: "directory-to-printer-3" url: "http://localhost/article/directory-to-printer-3/" markdown_url: "http://localhost/article/directory-to-printer-3.md" published_at: "2026-11-15T18:39:46+00:00" modified_at: "2026-11-15T18:39:46+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "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…" post_tag: - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "Public Domain Software" slug: "public-domain-software" taxonomy: "post_tag" url: "http://localhost/tag/public-domain-software/" - name: "QL" slug: "ql" taxonomy: "post_tag" url: "http://localhost/tag/ql/" - name: "Superbasic (programming language)" slug: "superbasic-programming-language" taxonomy: "post_tag" url: "http://localhost/tag/superbasic-programming-language/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Sinclair QL" slug: "sinclair-ql" taxonomy: "model" url: "http://localhost/model/sinclair-ql/" indiv: - name: "Butch Weinberg" slug: "butch-weinberg" taxonomy: "indiv" url: "http://localhost/indiv/butch-weinberg/" publication: "Sinc-Link" publication_r: id: 10240 title: "Sinc-Link" type: "periodical" url: "http://localhost/periodical/sinc-link/" authors: "Butch Weinberg" volume: "8" issue: "5" issues_articles: - id: 26587 title: "Sinc-Link v8 n5" type: "issue" url: "http://localhost/issue/sinc-link-v8-n5/" pages: "25" pubdate: "September/October 1990" archive_link: false volumeissue: "v8n5" article_media: - id: 77476 title: "Pri_dir" type: "computer_media" url: "http://localhost/computer_media/pri_dir/" --- # DIRECTORY TO PRINTER *PDS DOC* Well, as promised, here is some information on my “pri_dir” program in the [CATUG](http://localhost/usergroup/chicago-area-timex-users-group/) 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! ## Source Code: Pri_dir ``` 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 ```