Sorry I said I posted the snippet without the error but I didn't now I did =) Sorry for all my posts..
` #########################################################
` DBPro Get Drive Type (c) by Hubdule @ Color Arts 2003
` http://www.colorarts.de
` #########################################################
load dll "kernel32.dll",1
Do
input "Please input the drive letter to test: e.g. C:\ (blank for exit) ",JustOneDrive$
if len(JustOneDrive$)>0 and len(JustOneDrive$)<=3
DriveType=call dll(1,"GetDriveTypeA",JustOneDrive$)
select DriveType
case 5
print Upper$(JustoneDrive$) + " is a CD Drive"
endcase
case 2
print Upper$(JustoneDrive$) + " is a floppy Drive"
endcase
case 6
print Upper$(JustoneDrive$) + " is a Ram Disk"
endcase
case 3
print Upper$(JustoneDrive$) + " is a fixed Disk (HD)"
endcase
case 4
print Upper$(JustoneDrive$) + " is a network Disk (HD)"
endcase
case 1
print Upper$(JustoneDrive$) + " root does not exist"
endcase
endselect
endif
if JustOneDrive$="" then exit
loop
suspend for key
delete dll 1
end
------------------------------------------------
Someone is watching you...... And it isn't ME!
------------------------------------------------