找回密码
 加入
搜索
查看: 1439|回复: 3

[系统综合] explorer.exe的问题

[复制链接]
发表于 2011-12-20 23:16:13 | 显示全部楼层 |阅读模式
ProcessClose("explorer.exe")
Run("explorer.exe")

运行上面涵数后,会弹出我的文档,手动结束explorer.exe,再运行 不会弹出我的档
为什么?有没有办法开机后重启下explorer.exe,不弹任务窗口的的
发表于 2011-12-20 23:33:25 | 显示全部楼层
本帖最后由 半芯蕃茄 于 2011-12-21 00:03 编辑

Run(@ComSpec & " /c " & 'taskkill /f /im explorer.exe ', "", @SW_HIDE)
Sleep(2000)
ShellExecute('explorer.exe')
Exit
发表于 2011-12-21 00:09:46 | 显示全部楼层
如果要实现你的想法,那完整代码应该这样:
 ProcessWait ( "explorer.exe" ) 
Run(@ComSpec & " /c " & 'taskkill /f /im explorer.exe ', "", @SW_HIDE)
Sleep(2000)
ShellExecute('explorer.exe')
Exit

评分

参与人数 1金钱 +20 收起 理由
afan + 20

查看全部评分

 楼主| 发表于 2011-12-21 16:16:59 | 显示全部楼层
灰常感谢!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-10 02:11 , Processed in 0.075101 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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