Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connectivity
Message
De
27/03/2008 13:14:35
 
 
À
27/03/2008 09:42:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Divers
Thread ID:
01306135
Message ID:
01306228
Vues:
5
>First off, I should know this answer, but...
>
>Our application was designed to connect to drive across the network through mapped drives. But, if the local machine is rebooted the drive appears in the drive listing but is not available until it is accessed by the user via Explorer. Is there a way to programmability touch the mapped drive to allow access?

It sounds like you may be relying on Windows to "remember" drive mappings across reboots. A more reliable way to achieve this is to put the following commands in a .CMD file that gets run at workstation logon, or in the system logon script if you're on a domain:
REM Assume we're talking about drive H:
REM First, delete any pre-existing mapping for H:
NET USE H: /DEL >NUL
REM Now, re-establish the one we want:
NET USE H: \\MachineName\ShareName /persistent:y >NUL
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform