Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I can't connect to my data
Message
From
28/02/2000 12:01:09
 
 
To
28/02/2000 09:26:51
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00338312
Message ID:
00338505
Views:
21
>Hej igen Ben,
>
>Det kan gøres med:
>
>\\ip-address\tables /user:domainname\Username Password
>
>ex.
>\\oracle8i /user:tim\tim tim
>
>Det ved jeg ikke hvis det virker for dig.
>\\ip-address\tables\mydbf.dbf /user:domainname\Username Password
>
>Men du ku' også prøve API call'en
>
>WNetAddConnection
>

< snip > The following is not in Danish < g >

You can use WNetAddConnection3() rather than WNetAddConnection(), which allows you to specify both a userid and password; there's sample code for this in my NETRESOURCE classs downloadable here on UT. In addition, the WSH contains the Wscript.Network object, which can atach remote resources; see the link in my sig for more details.

Use of an ip address in a UNC is not universally supported; Win9x needs to resolve UNCs with a NetBIOS name for the server (you can use LMHOSTS to map this for you.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform