[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: printing directory of files on disk
In article <j-ferrie.11.0007F1F1@nwu.edu>,
Joseph P. Ferrie <j-ferrie@nwu.edu> wrote:
>I have a friend with a IIe who wants to know how to print the
>directory of files on a diskette directly to the printer, or
>alternatively, how to send the directory to a file and then print the
>file. Any help would be appreciated.
Pretty simple. Here's a quick program; it does require that the OS
(Dos 3.3 or ProDOS) be activated:
10 D$=CHR$(4):PRINT D$"PR#3":PRINT D$"PR#1"
20 PRINT D$"CATALOG"
30 PRINT D$"PR#3"
40 END
All it does is turn on 80 columns, then the printer. If the printer
is not in slot 1, change the 'PR#1' to whatever slot is correct. It
then dumps a catalog listing (change that to 'CAT' if you want the
short form under ProDOS), turns the printer off and the system in
80-column mode.
As to the sending the directory to a file, that's left as an
exercise for the reader. (Standard university cop-out when you don't
feel like answering it just yet :)
Nathan Mates
--
<*> Nathan Mates http://www.ugcs.caltech.edu/~nathan/ <*>
# And he said to them, "To you has been given the secret of the
# Kingdom of God, but for those outside, everything comes in
# parables" Mark 4:11, NRSV