Copy a file to a share on a Domain

Not sure I'm asking this correctly - Can anyone tell me how, from code (VB.NET or C#.NET) to copy a file from a computer that's not on a domain to a share on a domain?  Somehow I need to pass credentials?
LVL 1
HLRosenbergerAsked:
Who is Participating?
 
ste5anConnect With a Mentor Senior DeveloperCommented:
You need to "simulate" net use by using the NetUseAdd method (pinvoke).
0
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
0
 
HLRosenbergerAuthor Commented:
thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.