找回密码
 加入
搜索
查看: 2739|回复: 7

[AU3基础] (已解决)关于win10中重启explorer

  [复制链接]
发表于 2017-1-21 03:06:19 | 显示全部楼层 |阅读模式
本帖最后由 令狐大虾 于 2017-2-8 14:49 编辑

发现
                    Do
                        ProcessClose('explorer.exe')
                    Until Not ProcessExists('explorer.exe')
                    Run(@WindowsDir & '\explorer.exe')
在win10里面不好用了,好像进入死循环一样很久才出来。
特别是在虚拟机中
发表于 2017-1-21 08:55:07 | 显示全部楼层
手动能关闭 explorer.exe 么?
ProcessClose('explorer.exe') 有效么?
这些的测试结果是什么?
发表于 2017-1-24 21:53:40 | 显示全部楼层
这个应该可以

Run(@ComSpec & ' /c taskkill /im explorer.exe /f', "", @SW_HIDE)
Run("explorer.exe")
不用任何循环直接重启explorer。
发表于 2017-2-4 16:46:42 | 显示全部楼层
用来干吗?
发表于 2017-2-6 11:02:22 | 显示全部楼层
本帖最后由 ura 于 2017-2-6 11:04 编辑

回复 3# alwaystick

Run(@ComSpec & ' /c taskkill /im explorer.exe /f', "", @SW_HIDE)
Run("explorer.exe")
我win7不runwait sleep 不行
发表于 2017-2-6 15:53:28 | 显示全部楼层
回复 1# 令狐大虾


   我的WIN10版本 Microsoft Windows [版本 10.0.14393]   ,运行没有问题。

你看一下,先退出你的杀毒软件,再试试,或者
   Do
                        ProcessClose('explorer.exe')
   Until Not ProcessExists('explorer.exe')
   sleep(5000)
  Run(@WindowsDir & '\explorer.exe')
 楼主| 发表于 2017-2-8 14:48:48 | 显示全部楼层
谢谢楼上各位回复。
发表于 2018-2-21 16:07:38 | 显示全部楼层
學習了謝謝各位熱心回復
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-20 08:17 , Processed in 0.079115 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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