Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Diskspace slow
Message
De
22/11/2006 12:31:07
 
 
À
22/11/2006 12:17:07
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01171811
Message ID:
01171847
Vues:
7
>>One routine tests characteristics from drives A-Z. It also uses diskspace(). All existing drives are processed very quick. Non-existent drive letters return -1, but these drives too are analyzed by Diskspace() very quick.
>>
>>However, I have one drive letter that it waits for, about 30 seconds. It is a drive connected to the c$-share of another PC. That PC is off. So, I guess, diskspace() is simply polling for a reaction and aborts polling after a certain time only.
>>
>>Who knows whether there is any other function (API perhaps) that gives the not-connected information quicker?
>
>drivetype() ?

It reacts immediately. However, the response is not 1 (what would imply No Drive), but 4. So, it would not stop the routine from continuing the exploration of the drive.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform