Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I find the cdrom drive?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00446679
Message ID:
00449291
Views:
24
>>You can check all possible drivies in the loop until you find CDROM
>>
Declare Integer GetDriveType in Win32API String
>>lcCDROM = Null
>>FOR lnI=Asc("A") To Asc("Z")
>>	IF GetDriveType(Chr(lnI)+ ":") = 5
>>		lcCDROM = Chr(lnI)
>>		EXIT
>>	ENDIF	
>>ENDFOR
>>
>>
>>? lcCDROM
>>
>
>What about schmucks like me who have more than one, or who want to access a network resource? (I have a DVD drive shared to the net here.)
>

"Schmucks" like you know how to use WSH :)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform