Foxtable(狐表)用户栏目专家坐堂 → 登录提示数据源


  共有3470人关注过本帖平板打印复制链接

主题:登录提示数据源

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/5/8 8:44: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.1.240 2014 /user:administrator")
p.StandardInput.WriteLine("exit")
system.threading.thread.sleep(1000)


 回到顶部
总数 34 1 2 3 4 下一页