Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to test if a floppy is inserted ?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00976706
Message ID:
00977002
Views:
39
>Allessio
>
>There's probably a function in V8 and up, and a more sophisticated method but DISKSPACE("A") will return -1 if problem reading from the volume, e.g. if it's not in.
>
>HTH
>
Terry,

This, IMO, isn't the best way to go. Easiest is to use the WSH's FileSystemObject. Under certain versions of Windows (such as NT 4.0), you'll get an error depending on the settings. I published a tip on this sometime ago on Advisor.
George

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

Click here to load this message in the networking platform