Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to catch absent disk error on aDir()?
Message
De
17/02/2013 08:06:58
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/03/2012 16:02:25
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Database:
MS SQL Server
Divers
Thread ID:
01538758
Message ID:
01566241
Vues:
53
>>>Memory card reader with empty slots. See screenshot.
>>
>>OK, I guess an empty optical drive is somehow treated differently from an empty card reader "drive".
>>
>>I see you've worked around the issue using the FSO. However, I *think* WMI has a lot of detailed information about storage devices. I don't know if that includes (reliable) information about the presence of media.
>
>I'm happy with FSO - WMI promises a lot, but somehow it sounds like a too heavy piece of artillery for this mosquito of a problem.

ОК... This time I took some time to find a way, and it was in front of my nose all the time.

oFso.getDrive("j:").isReady will return .f. if there's no disk in drive J: - as simple as that. Found it on Foxite, in a thread from 2007.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform