>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:')
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