Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get number of drives on machine & their types in
Message
 
To
09/07/2004 13:13:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00922574
Message ID:
00922589
Views:
16
>>how to get number of drives on machine & their types in VFP6
>>Rajesh
>
>One way is brute force. This comes from some actual code, where I'm accumulating a list of hard drives. You'll need to adjust it to your situation.
>
>
>FOR nDrive = ASC("C") TO ASC("Z")
>	cDriveLetter = CHR(nDrive)
>	IF INLIST(DRIVETYPE(cDriveLetter), 2, 3, 4)
>		This.AddDriveToList(cDriveLetter)
>	ENDIF
>ENDFOR
>
>
>
Tamar,

I think I may know where this comes from.< g,d&r >
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform