Re: open shared resource from one computer to another by AA
AA
Thu Jul 01 10:00:51 CDT 2004
Thanks Krishna!
So, there is not 100% Managed way to do that?
AA
"Krishna Kumar .P" <krishkpno@comcast.net.nospam> wrote in message
news:%23IEgYzzXEHA.3476@tk2msftngp13.phx.gbl...
> Hi,
>
> There are couple of way to do it. One way is to call "net use" command
> using process object with proper parameters. The other way is the proper
way
> of calling Win32 API for NetUse API using interop.
>
> Attached is the sample for that, which also have all the constants
defined.
>
> HTH,
> -Krishna
>
> "AA" <aa@personal.net.py> wrote in message
> news:OxRZ0juXEHA.996@TK2MSFTNGP12.phx.gbl...
> >I need to open a shared resource like
> > \\server01\myshare
> >
> > But I need to open using a specified username and password, also maybe a
> > Domain
> >
> > Is possible?
> >
> > Thanks a lot
> >
> > AA
> >
> >
>
>
>