access shared folder using specific credentials

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

How can I connect to a shared folder/file located on a remote computer in a
workgroup environment. I can't use impersonation and LogonUserA() API
because that only obtains a local user token? I am trying to do this in
VB.NET.
I have also tried WNetAddConnection2() with a username and password along
with the CONNECT_INTERACTIVE flag set to prompt for a username and password.
This method creates a mapped network drive, which I do not want to do,
although it does work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top