Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mapped drive losing connection
Message
De
14/03/2017 06:20:56
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
14/03/2017 00:33:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01649005
Message ID:
01649020
Vues:
81
>Greetings!
>
>I am trying to help on a small office network that desktops are mapped to a server, and to a 'web server'. The regular server runs a regular vfp exe, and the data files reside on that server. There is a 'web component' that runs a separate exe on a server via RDP. Data is posted to the 'web server' dbf's from the work stations in the office. The RDP exe uses the data and posts info back to the regular server. The problem that is occurring is that the mapped drives randomly disconnect, which brings up an error on the desktops - as in 'Alias not found'. When opening windows explorer, one of the mapped drives will be marked with the red x indicating a broken connection. Click on it to connect again, and all works well until it randomly decides to disconnect again. Is there any way to check from within vfp if the drive is still connected, and if not, to reconnect before 'selecting' a file on the disconnected drive?

Persistent mappings aren't. You can't trust them. So if possible, I'd rather replace the path on the shortcuts to use UNC and not mapped drives at all. If the mappings are hardcoded in the app, well, use some kind of launcher which will check for mappings and create them if absent. That launcher can be a simple .bat file or a vb script or a regular exe.

If you mean to do that from the app itself, i.e. you can rebuild the app - well then it's easier to make sure it can use UNC and you can forget the mappings. But if that's too hard (i.e. references to actual drives are scattered in too many places), there was a thread a week or two ago about enumerating drives - see message 1648377.

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