Network file copy in .NET
问题 I have an Ubuntu box running a Samba share open to everyone. I can access it via \ip address so I know I have full access to it. From within my application I am trying the following but it will not work via the ip address only the DNS name. // val = ip address File.Copy("\\\\" + val + "\\share\\vSphere\\vSphere.exe", Temp + "vSphere.exe", true); I need to use the IP Address as people who are VPN'ing in won't be able to have the program access the dns name only the ip address. 回答1: First, try