实现访问远程主机的共享目录中的一个文件的解决方法:
一、调用Net use命令
// 使用方法:
//if (Connect(192.168.1.48, 用户名, 密码))
//{
// File.Copy(@\192.168.1.48共享目录 est.txt, @e:\test.txt, true);
//}
public bool Connect(string remoteHost, string userName, string passWord)
{
bool Flag = true;
Process proc = new Pr