中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-11-10 16:12
47,815 topics / 349,930 posts / today 0 new / 48,291 members
DOS批处理 & 脚本技术(批处理室) » [Help] How to use batch processing to close and reopen the explorer process
Printable Version  4,815 / 16
Floor16 lxmxn Posted 2006-10-17 03:56
版主 Posts 4,938 Credits 11,386
Originally posted by 002500 at 2006-10-16 01:09:
It's strange that using a batch script to close explorer didn't succeed but the shutdown interface popped up?

C:\>taskkill /im explorer.exe
SUCCESS: The process "explorer.exe" with PID 7864 has been terminated. ...


  Hehe, it's not a virus. Try this command and the shutdown dialog won't appear:



[ Last edited by lxmxn on 2006-10-17 at 03:58 ]
Floor17 my3439955 Posted 2006-10-17 06:51
中级用户 Posts 99 Credits 272
楼主请听我说

Explorer.exe is the foreground process of the system.

In the case of abnormal termination, for example, using the following form:
ntsd -c q -pn explorer.exe

The system will consider this as an unexpected operation and automatically restart Explor.exe. So the next sentence of the owner,
c:\windows\explorer.exe
will be executed when Explorer has been restarted, that is, opening the Windows Explorer.

If you want to end this process without automatic recovery, one way is to force kill the process in the Windows built-in Task Manager. The scripted method has not been discovered yet, leaving it for the experts to continue exploring.
Prev  1 2
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023