You could use the drivetype() function to identify valid drives.
Eg:
dimension marray(26)
mcount = 0
for i = 67 to 90 &&check for drives c: to z:
x = drivetype(chr(i))
if x = 3 or x = 4 &&hard drive or removable drive/network drive
mcount = mcount + 1
store chr(i)+':' to marray(mcount) &&store valid drives to marray
?marray(mcount) &&display drive
endif
endfor
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.