Local lnReturn
lnReturn = DRIVETYPE("a:")
IF lnReturn = 2
messagebox("There is an 'A' drive")
ELSE
messagebox("There is NO 'A' drive")
ENDIF
try the diskspace command. If the disk is not in the drive it returns -1, otherwise it returns the free space on disk. No need to build a seperate error routine, just check the return value. Attitude is Everything
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.