1、不能在线升级的电脑,直接访问共享文件夹,如 \\192.168.1.108 这样的路径,能否进入?
2、打开项目的时候,先登录一下,beforeOpenProject编写代码输入账号密码
Dim p As new Process()
p.StartInfo.FileName = "cmd.exe"
p.StartInfo.UseShellExecute = False '关闭Shell的使用
p.StartInfo.RedirectStandardInput = True '重定向标准输入
p.StartInfo.RedirectStandardOutput = True '重定向标准输出
p.StartInfo.RedirectStandardError = True '重定向错误输出
p.StartInfo.CreateNoWindow = True '设置不显示窗口
p.Start()
p.StandardInput.WriteLine( "net use \\192.168.1.108 Admin123 /user:administrator")
p.StandardInput.WriteLine("exit")
[此贴子已经被作者于2017/12/5 17:05:25编辑过]