>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.)