--- title: "Pri_dir" id: 77476 type: "computer_media" slug: "pri_dir" url: "http://localhost/computer_media/pri_dir/" markdown_url: "http://localhost/computer_media/pri_dir.md" published_at: "2026-11-15T18:38:16+00:00" modified_at: "2026-11-15T18:38:16+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Prints the directory of a QL disk on a SER1 printer, as many disks as you like." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "QL" slug: "ql" taxonomy: "post_tag" url: "http://localhost/tag/ql/" 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/" genre: - name: "Printer" slug: "printer" taxonomy: "genre" url: "http://localhost/type/printer/" media_type: "Diskette" programmers: - name: "Butch Weinberg" slug: "butch-weinberg" taxonomy: "indiv" url: "http://localhost/indiv/butch-weinberg/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Pri_dir%20%281990%29%28Weinberg%2C%20Butch%29%28Sinclair%20QL%29%28US%29%28Program%29.zip" mediadate: "1990" article_media: - id: 76885 title: "DIRECTORY TO PRINTER" type: "article" url: "http://localhost/article/directory-to-printer-3/" - id: 42793 title: "Directory to Printer" type: "article" url: "http://localhost/article/directory-to-printer/" media_type_tags: "Printer" license: false --- # Pri_dir A seven-line SuperBASIC utility that sends the directory of the disk in FLP2_ to a printer on SER1. After each directory it asks MORE?; press Y to print another (change the disk first), any other key to finish, which sends a form feed and closes the printer channel. For a Microdrive, change the device in line 20 to mdv1_ or mdv2_. Butch Weinberg wrote it for the CATUG Public Domain library, and this is his PDS DOC note on it, which ends: “Feel free to further alter it, but don’t sell it!” Published in Sinc-Link September-October 1990 ([DIRECTORY TO PRINTER](https://timexsinclair.com/article/directory-to-printer-2/)). ## Source Code ``` 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 ```