Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I find the cdrom drive?
Message
 
 
À
04/12/2000 18:17:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00446679
Message ID:
00449291
Vues:
19
>>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform