Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Map Drive dialog
Message
De
30/01/2009 07:22:32
 
 
À
30/01/2009 07:04:52
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:
01378403
Vues:
25
>>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.

I have considered this approuch, but thought that I could use the existing dialog built in to Windows.

Perhaps there is a API call or a exposed method in the Explorer application that accessed through a COM style object.
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform