Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to catch absent disk error on aDir()?
Message
De
21/03/2012 09:18:16
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
20/03/2012 16:41:59
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:
01538886
Vues:
47
>>>See if http://www.berezniker.com/content/pages/visual-foxpro/enumerate-available-drives can help
>>
>>No, it doesn't distinguish "removable and removed" from "removable but present". Furthermore, two drives in an USB drawer, which are recognized as removable by the OS, are detected as fixed, which they are not.
>
>In Disk Management, you can remove any auto-assigned drive letters from the card reader, and configure fixed ones instead. If you assign them letters such as P: through T: then that should not conflict with other USB or eSATA drives you may plug in from time to time.

Unfortunately, wouldn't work in my setup. Like I said, my drive letters change at times. There may be one or two flash drives, a camera/PSP/phone/Sansa attached as a flash drive; the disk in the drawer with its two partitions may be offline... and I generally don't think I should adjust my habits to the machine. Rather, I prefer the opposite :).

>ISTR seeing an *ancient* Article or Download here by George Tasker that checked for the presence of media in a drive, but I can't find it.

Likewise, I remember that it existed :). However, I got the solution - using filesystem object and detecting the error if it can't find the folder is completely trappable, and it doesn't provoke any OS dialog, exactly what I was looking for.

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform