标题: 求助:能不能用批处理实现结束和重新打开explorer.exe进程
[打印本页]
作者: manedwolf
时间: 2007-9-12 16:46
标题: 求助:能不能用批处理实现结束和重新打开explorer.exe进程
能不能用批处理实现结束和重新打开explorer.exe进程。
很多软件安装后都要求重启电脑其实只要把资源管理器进程结束再打开就可以正常使用了,不过手动结束和打开比较麻烦。不知道用批处理能不能实现,请朋友们帮帮忙吧!
作者: ThinKing
时间: 2007-9-12 17:19
taskkill /f /im explorer.exe && explorer.exe
作者: manedwolf
时间: 2007-9-12 17:32
谢谢楼上的朋友,我试试看
作者: manedwolf
时间: 2007-9-13 09:08
Quote: |
Originally posted by ThinKing at 2007-9-12 05:19 PM:
taskkill /f /im explorer.exe && explorer.exe |
|
请教:taskkill /f /im explorer.exe && explorer.exe保存为bat文件
运行后为什么在2000下可以自动关闭cmd窗口,在XP下不能关闭呢?
知道的朋友请回答。谢谢!
作者: ThinKing
时间: 2007-9-13 11:08
2000 下有没有taskkill命令?
作者: qinbuer
时间: 2007-9-13 12:00
2000 下没有
作者: flamemperor
时间: 2007-9-13 15:21
Quote: |
Originally posted by manedwolf at 2007-9-13 09:08 AM:
请教:taskkill /f /im explorer.exe && explorer.exe保存为bat文件
运行后为什么在2000下可以自动关闭cmd窗口,在XP下不能关闭呢?
知道的朋友请回答。谢谢! |
|
楼主是指那个cmd没有被关上么?
作者: wen513520
时间: 2007-9-13 16:13
ntsd -c q -p explorer进程的PID
作者: titiger
时间: 2007-9-14 23:33
Quote: |
Originally posted by manedwolf at 2007-9-13 09:08 AM:
请教:taskkill /f /im explorer.exe && explorer.exe保存为bat文件
运行后为什么在2000下可以自动关闭cmd窗口,在XP下不能关闭呢?
知道的朋友请回答。谢谢! |
|
xp会在等待explorer.exe结束后才关闭
改为:taskkill /f /im explorer.exe && start explorer.exe 即可!
作者: wen513520
时间: 2007-9-19 02:28
taskkill /f /im explorer.exe & start explorer.exe
作者: tireless
时间: 2008-7-13 16:14
这样就是重启explorer进程:
tskill explorer
作者: salmon5
时间: 2008-7-13 17:20
taskkill /f /im explorer.exe && start .
只不过有个错误提示,哈哈!
作者: wxcute
时间: 2008-7-13 19:13
11楼的方法不错。
作者: 4229777
时间: 2010-12-24 22:34
学习了···