Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mapping Drives
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00635575
Message ID:
00635583
Vues:
10
>Hi all,
>
>I have been trying to use the WNetAddConnection() API call in my foxpro app. The shares I map drives to all need a userid AND password to connect to them, but the article in the FAQ section says that this function accepts 3 parameters - Path Name, Password, and Drive Letter.
>Any suggestions?
>
>Thanks,
>Jeff

WNetAddConnection() is provided for 16 bit compatibility. You could use Ed Rauh's NetResource file (from the download section). As I recall, it implements WNetAddConnection3() and should allow you to do what you need.

An alternative, if available, would be the Windows Script Host's WScript.Network object. It's MapNetWorkDrive method allows you to do this as well.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform