Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Map Drive dialog
Message
De
30/01/2009 07:04:52
 
 
À
30/01/2009 06:57:46
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Divers
Thread ID:
01378392
Message ID:
01378395
Vues:
19
>Does anyone know how to open the Windows Explorer Map Network Drive dialog from Fox?

You can map network shares without this dialog.
if !directory('p:')
   wshshell=CREATEOBJECT('wscript.shell')
   wshnetwork=CREATEOBJECT('wscript.network')
   wshnetwork.MapNetworkDrive('p:','\\myserver\mypath',.f.,'Username','Password')
   wshnetwork=.null.
   release wshnetwork
Endif
Replace .f. with .t. to get a persistent mapping.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform