You're welcome!
One thing though, it seems that whenever I edit a post, the backslashes disappear. In the above code, some of the backslashes had disappeared. I put them back in but so you know, there has to be a backslash in
if bit = 1
drive$(bitpos-(n-1))=chr$(ascii)+
":\"
print drive$(bitpos-(n-1));" ";
drivetype=call dll(1,"GetDriveTypeA",drive$(bitpos-(n-1)))
print drivetype$(drivetype)
endif
Each drive string has to be in the format
<letter>:\ in order for the GetDriveTypeA() function to work properly. If the slash is not there, the wrong drive type could be returned.
Enjoy your day.