Solved

Copy a file to a share on a Domain

Posted on 2016-10-26
3
85 Views
Last Modified: 2016-10-28
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?
0
Comment
Question by:HLRosenberger
3 Comments
 
LVL 33

Accepted Solution

by:
ste5an earned 250 total points
ID: 41861800
You need to "simulate" net use by using the NetUseAdd method (pinvoke).
0
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 250 total points
ID: 41862157
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
ID: 41863830
thanks.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question