Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Map network drive to always connect at logon
Message
 
 
À
23/10/2003 23:34:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00841946
Message ID:
00842004
Vues:
18
You can check if share's mapped already.
IF DRIVETYPE("H:") <> 4
  onet.mapnetworkdrive("H:","\\server1\data",.T.)
ENDIF
>i use WSH to connect to a network drive, and i want to always connect it at logon so i use,
>
>
onet.mapnetworkdrive "H:","\\server1\data","True"
>
>but the second time i run the program i have this error,
>
>OLE IDispatch exception code 0 from WSHNetwork.MapNetworkDrive: An attemp was made to remember a device that had previously been remembered.
>
>what should i do?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform