Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking status of floppy drive
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00017618
Message ID:
00017865
Views:
58
>>I am in VFP 3 on Windows 3 platform. How can I check to see if the floppy drive is ready from within my application. The users are loading from disks and I want to make sure they don't get the ugly Windows generated CANNOT READ FROM DRIVE error.
>
>Try this code it will work with no error from VFP
>
>if ! file("A:\nul")
> wait "no disk" window
>else
> wait "disk present" window
>endif
>
>Michel

I used a library called Straley's Toolkit in my old Clipper days. It had a function designed to test A: drive. I have to believe that there is a Fox lib out there with this function. If not U may need to write a little C program to accomplish this task.
Steve Medvid
Systems Analyst

Environmental Resource Management
Previous
Reply
Map
View

Click here to load this message in the networking platform