Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is Disk In--How to Tell?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00413095
Message ID:
00413105
Views:
44
>How can you tell if a diskette is inserted in a given drive? Is there an API call for this function? Or a VFP command?
> Thanks, Chaim

Use the Windows Script Host's FileSystemObject. I posted this earlier to-day:
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
oDrive = oFSO.GetDrive("A:")
? oDrive.IsReady
George

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

Click here to load this message in the networking platform