Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynaZip MultiVolume Question
Message
 
To
16/04/1999 14:19:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00209114
Message ID:
00209126
Views:
19
>I have a form that the user inputs a zip file name and presses a continue button. The program then runs a DynaZip routine. If the user selects a drive that is "removable media" I want to include the multivol parameters. Right now I just check for an 'a' or 'b' in the drive designator. This is fine except for those cases where a user might have say a zip drive at 'd'. Is there a way in Foxpro to tell if the target drive is "removable"?
>
>TIA

Hi Robert,

In VFP 6.0 there's the DriveType() function. In pervious versions, this function was available in Foxtools. You call the function with:
lnresult = DriveType('C:') && or other drive letter
In either case, if the return value is 2 it's a floppy; 4 if it's a removable or network drive.

hth,
George

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

Click here to load this message in the networking platform