Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapping Drives
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00635575
Message ID:
00635583
Views:
11
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform