Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for Existance of Diskette in Drive A
Message
De
22/09/2000 13:50:55
Jonathan Cochran
Alion Science and Technology
Maryland, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00419785
Message ID:
00419898
Vues:
26
I should of posted this in my first reply, but I was kinda busy at the time.

Look at Knowledge Base article Q191501. We use a combination of it, trapping FoxPro errors with ON ERROR, and using FCREATE() instead of DISKSPACE() as used in the article (we want to see if you can write to the drive, as well).

>I did not know that. I used this code with an old app that ran on a win95 box. So, if NUL is not a valid device in NT, do you know what will work to check for the existence of a diskette in drive A?
>
>>This won't work on NT (and I assume 2000), since NUL is not a valid device.
>>
>>>IF ! FILE("A:\nul") && no diskette in drive A
>>>
>>>
>>>>Hi All! I recently saw a thread about how to check for a diskette in the A drive, but cannot find the thread or remember the logic.
>>>>
>>>>Can somebody direct me as to what to do to check for this.
>>>>
>>>>Thank you.
>>>>
>>>>Joe
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform