Foxtable(狐表)用户栏目专家坐堂 → 用户名或密码不正确


  共有1911人关注过本帖树形打印复制链接

主题:用户名或密码不正确

帅哥哟,离线,有人找我吗?
有点甜
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/12/24 11:47:00 [显示全部帖子]

你这个共享文件夹,是否设置账号密码,需要输入才能进入的?

 

如果设置账号密码,先执行这段代码后,再测试试试

 

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 * /del /y")
p.StandardInput.WriteLine( "net use \\192.168.0.12 123456 /user:admin")
p.StandardInput.WriteLine("exit")

 回到顶部