1. 首页
  2. 数据库
  3. 其它
  4. C#访问远程主机资源的方法

C#访问远程主机资源的方法

上传者: 2021-01-31 01:27:29上传 PDF文件 60.51KB 热度 11次
实现访问远程主机的共享目录中的一个文件的解决方法: 一、调用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
下载地址
用户评论