Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hard drives
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00529293
Message ID:
00529437
Views:
11
>>>Hi,
>>>sorry to ask... I think I've already read a thread about this... but I can not use search options... so if someone can help me...
>>>
>>>How do I know how many fixed drives has a machine? and their letter..
>>>
>>>sorry again.
>>>fabian
>>
>>Use Drivetype() function and loop through the letters of the alphabet
>>lcAlpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
>>lcDrives = ""
>>for lnI = 1 to 26
>>    lcLetter = substr(lcAlpha, lnI, 1)
>>    if DriveType(lcletter) = 3
>>       lcDrives = lcDrives + lcLetter
>>    endif
>>endfor
>>return lcDrives
>
>Oops, same function and Brett beat you by 3 seconds... :) First is a winner :)

BTW, I guess FileScriptingObject can help here too. Have to check George's and Ed's articles for details...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform