Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get number of drives on machine & their types in
Message
From
09/07/2004 16:53:50
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00922574
Message ID:
00922741
Views:
12
>>>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 >

And you'd be right. <g>

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform