找回密码
 加入
搜索
查看: 2760|回复: 8

[系统综合] psexec.exe 弹出的窗口老是发送快捷键不成功的..... [已解决]

  [复制链接]
发表于 2011-12-26 14:44:31 | 显示全部楼层 |阅读模式
本帖最后由 流沙枫 于 2012-1-3 15:43 编辑

Run(@ComSpec & " /c " & 'TASKKILL /F /IM explorer.exe /T', "", @SW_HIDE)
Runwait('psexec.exe -d -s explorer.exe',@scriptdir)
WinActive("PsExec License Agreement","")
ControlClick ("PsExec License Agreement","&Agree","Button1")
Send("!A")
RunAs ( "administrator","", "", 1, "c:\windows\explorer.exe","c:\windows")

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2011-12-26 14:54:16 | 显示全部楼层
本来想看下能帮点忙不, 可是楼主至少先要说明这EXE是做什么的吧?
发表于 2011-12-26 15:05:52 | 显示全部楼层
psexec第一次操作的时候需要agree个协议,以后使用就不会提示了,你是不是已经agree过了,所以不成功
 楼主| 发表于 2011-12-26 15:06:08 | 显示全部楼层
回复 2# user3000


    唤起explorer.exe 工具....
发表于 2011-12-26 16:30:59 | 显示全部楼层
psexec第一次使用会弹出协议窗口,同意后,就可以用了
 楼主| 发表于 2011-12-26 17:04:18 | 显示全部楼层
回复 3# 502762378

需要第一次点agree,但是也不成功....
发表于 2011-12-27 11:23:41 | 显示全部楼层
用隐藏参数  runwait('psexec.exe -accepteula -d -s explorer.exe',@scriptdir)
 楼主| 发表于 2011-12-27 11:40:46 | 显示全部楼层
回复 7# Qokelate


Run(@ComSpec & " /c " & 'TASKKILL /F /IM explorer.exe /T', "", @SW_HIDE)
runwait('psexec.exe -accepteula -d -s explorer.exe',@scriptdir)
RunAs ( "administrator","", "", 1, "c:\windows\explorer.exe","c:\windows")
Sleep(1000)

可是唤起不了explorer.exe进程了......
 楼主| 发表于 2012-1-3 15:43:17 | 显示全部楼层
好像又得了...
奇怪!!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-10-1 01:30 , Processed in 0.082146 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表