Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to catch absent disk error on aDir()?
Message
From
17/02/2013 08:06:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/03/2012 16:02:25
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Database:
MS SQL Server
Miscellaneous
Thread ID:
01538758
Message ID:
01566241
Views:
55
>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform