Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking status of floppy drive
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00017618
Message ID:
00017865
Vues:
62
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform