wow... I think thats longer than my code to read the results of the 'info' command!
the manual says you restrict the DEV command to either assigns or drives only by using "/d" or "/a" (if i remember right) but everything i did only gave me one listing, of the first assign! (very strange) .... maybe another bug of AMOSpro?
using hard coded options 'dh0:' etc is exactly what i'm trying to avoid, as this has caused a problem sharing my WHDLoad booting program with a friend.
The code i'm using now is this... its a bit nasty but it works, lol
PROCEDURE _GETDRIVES
' ====== this is a program to fill an array with available drives
' --- output the INFO command to ram:
Exec "C:info >t:infoout"
' --- load the file, stick it into string
Reserve As Work 1,Object Size("t:infoout")
Bload "t:infoout",1
For B=0 To Length(1)-1
ALL$=ALL$+Chr$(Peek(Start(1)+B))
Next B
Erase 1
Exec("C:delete t:infout")
' ==== now read each line at a time
For Q=3 To 100
FISH$=Itemstr$(ALL$,Q,Chr$($A))
If FISH$="" Then Exit
For T=1 To Len(FISH$)-3
If Mid$(FISH$,T,3)=": " Then Exit
Next T
FISH$=Left$(FISH$,T)
ADRIVE$(F)=FISH$
F=F+1
If F>32 Then Exit
Rem Print FISH$
Next Q
Erase 1
End Proc