[Coco] Reading DSK directory on CoCoSDC

Bob Devries devries.bob at gmail.com
Sun Oct 12 23:25:02 EDT 2014


Hey, Nick...

Do you remember the old trick we used to print a directory to a printer? 
I think it was:

POKE 111,254:DIR

Maybe something similar would work?

Open a file:
5 DIM L$(100)
10 OPEN "I", #1, "FLOPDIR"
20 POKE 111,1:DIR-
30 CLOSE #1
40 OPEN "O",#1,"FLOPDIR"
45 X=0
50 IF EOF(#1) THEN CLOSE #1:GOTO 111
60 LINEINPUT #1,L$(X)
65 X=X+1
70 GOTO 50


This was off the top of my head, BTW. The usual disclaimer etc...

Regards, Bob Devries
Dalby, QLD, Australia

On 13/10/2014 12:53 PM, nickma2 at optusnet.com.au wrote:
> I am thinking of a simple BASIC program to run (maybe using the
> CoCoSDC autostart at bootup) to read the directory of the SD card on
> the CoCoSDC to allow people to navigate the DSK directory tree of the
> card.
>
> Then allow the user to pick a DSK image and mount it.
>
> The CoCoSDC has commands for navigating the SD directory and mounting
> DSK files but I was thinking of a menu driven system similar to Luis's
> SideKick.
>
> Is this possible and how does one read the SD card directory?
> (Basically, I want the filenames that the DIR- command brings up)
>
> Nick
>
> -------------------------
> Email sent using Optus Webmail
>



More information about the Coco mailing list