批处理脚本重启资源管理器

版权声明:原创文章,转载请注明出处。 https://blog.csdn.net/aitcax/article/details/53005986

将以下代码写入文本文件,然后改后缀名为.bat,然后就可以执行了。

执行过程是:
1.杀掉资源管理器,explorer.exe进程
2.等待5秒
3.启动explorer.exe

taskkill -f -im explorer.exe
ping -n 5 127.0.0.1>nul
explorer.exe

猜你喜欢

转载自blog.csdn.net/aitcax/article/details/53005986