Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement