Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Netwrked Drive Properties
Message
De
06/07/1999 22:18:26
 
 
À
30/06/1999 16:21:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00236128
Message ID:
00238084
Vues:
16
>>>Hey guys..
>>>I'm curious if there is a way to query the OS or somesuch and find out whether a network mapped drive has read only or writable flags on it. Like with NT you can set shares to read only or raed write depending on Login or by the sahre itself.. Is there a way to ask Windows if a mapped drive is read only etc..?
>>
>>It's fairly trivial - try to do an FCREATE() of a file on the mapped drive - if the FCREATE() fails, you can't write to the drive.
>
>
>Heh. That's what I'm doing now.. I was just wondering if there was another way. Thanks tho.


Using FCREATE() is ok provided your app can do with the overhead.
If using FCREATE() to see if a particular workstation is connected to the network takes too long before you get an answer.

I have a timer on an app that wakes up every 5 seconds and looks for a data file on a WS. If present, the server is updated with data from the DBF on the WS. This was done so that if the WS went down, the server could still continue to operate by manually entering the data that would have been extracted from the WS.
But this does not work very well. (I use FILE()and look on a virtual drive. eg

IF file("\\isZ20x\c\bbtemp\weighmst\ab001.DBF"))

works ok as long as the \\isZ220x\... is actually connected. But if for some reason it is NOT online, then FILE() or FCREATE() or any such command, literally stops the current application while it goes off in search of the fiel/computer on the network and this is unacceptable!

Is there any other way, that does not stop the current process??

Bernard
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform