Connect as different user to network share

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

Is there a new ".NET" way of connecting to a network share using a different
user name, that is equivelent to the old WNetAddConnection2A way of
connecting to network shares?
 
I found the following solution:

http://www.tek-tips.com/viewthread.cfm?qid=1235871

which uses .NET, rather than the Win32 code I mentioned. But I keep getting
the error: ""You were not connected because a duplicate name exists on the
network. Go to System in Control Panel to change the computer name and try
again."

I have confirmed that I do not already have a share mapped to this location.
Can someone help me out? Thanks.
 
Back
Top