• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 122
  • Last Modified:

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?
0
HLRosenberger
Asked:
HLRosenberger
2 Solutions
 
ste5anSenior DeveloperCommented:
You need to "simulate" net use by using the NetUseAdd method (pinvoke).
0
 
Éric MoreauSenior .Net ConsultantCommented:
0
 
HLRosenbergerAuthor Commented:
thanks.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now