中国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-08-12 08:16
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Why does this VBS script restart the Windows Explorer on my computer?
Printable Version  3,373 / 15
Floor1 eech Posted 2006-12-20 08:15
高级用户 Posts 346 Credits 906
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys "{F5}+{F10}e"

This was originally a refresh script. But on my computer, it just restarts the Explorer. Please help try it. Please ask the experts for guidance
Floor2 kcdsw Posted 2006-12-20 08:22
中级用户 Posts 179 Credits 404
It is estimated that explorer has crashed and restarted by itself
Floor3 eech Posted 2006-12-20 08:28
高级用户 Posts 346 Credits 906
It restarts only each time this script is run.
Floor4 lxmxn Posted 2006-12-20 11:49
版主 Posts 4,938 Credits 11,386

  Running on the desktop, the desktop icon flickers for a moment, which is refreshing, normal.
Floor5 zh159 Posted 2006-12-20 13:51
金牌会员 Posts 1,467 Credits 3,687
WSHShell.SendKeys "{F5}+{F10}e"
The main function is to call the "Refresh" in the right-click menu, and it works effectively on the desktop, within folders, and in IE windows; in specific cases, it becomes tiling all windows (specifically what the situation is is not known)
Floor6 eech Posted 2006-12-21 22:46
高级用户 Posts 346 Credits 906
Got it. Hehe. Originally I placed a shortcut on the desktop to end and restart the Explorer, with the shortcut key F5. No wonder. Hehe
Floor7 baomaboy Posted 2007-01-24 03:09
银牌会员 Posts 554 Credits 1,513
Originally posted by eech at 2006-12-21 22:46:
Got it. Hehe. Originally I had a shortcut on the desktop to end and restart Windows Explorer, with the shortcut key set to F5. No wonder. Hehe


Ask for advice: Is there a specific command to end and restart Windows Explorer?
Like in WinME: RUNDLL32 SHELL32.DLL,SHExitWindowsEx -1

In addition to these:
wmic process where "name='Explorer.exe'" call terminate
ntsd -c q -p pid'''explorer-pid
ntsd -c q -pn Explorer.exe
taskkill /im Explorer.exe /f

[ Last edited by baomaboy on 2007-1-24 at 04:39 AM ]
Floor8 lxmxn Posted 2007-01-24 06:49
版主 Posts 4,938 Credits 11,386
Originally posted by baomaboy at 2007-1-23 14:09:

Ask: Is there a specific command to end and restart Windows Explorer?
For example, under WinME: RUNDLL32 SHELL32.DLL,SHExitWindowsEx -1
Besides these:
wmic process where "name='Explorer.exe'" call te ...


  May I ask if it's to collect commands to end processes or for other purposes? Aren't so many commands enough?
Floor9 qasa Posted 2007-01-24 07:13
高级用户 Posts 311 Credits 959 From 广东-LianJiang
Originally posted by lxmxn at 2007-1-24 06:49:


May I ask if it is for collecting commands to end processes, or for other purposes? Are so many commands not enough?


Haha, hit the nail on the head, is the seventh floor having ulterior motives......
Floor10 baomaboy Posted 2007-01-24 09:26
银牌会员 Posts 554 Credits 1,513
^_^
Actually, I just want to know more ways to solve a problem...
I want to know both shortcuts and roundabout and cumbersome methods. I believe I'm not the only one here who has such an idea.
Floor11 lxmxn Posted 2007-01-24 09:34
版主 Posts 4,938 Credits 11,386

I know the following few:

  • taskkill /f /im <ProcessName>
  • taskkill /f /pid <ProcessID>
  • ntsd -c q -pn <ProcessName>
  • ntsd -c q -pid <ProcessID>
  • tskill <ProcessID>/<ProcessName>
  • wmic process where "name='<ProcessName>'" call terminate
  • wmic process where "processid=<ProcessId>" call terminate
  • rundll32.exe ……
Floor12 baomaboy Posted 2007-01-24 12:14
银牌会员 Posts 554 Credits 1,513
Floor13 wlei89512 Posted 2010-11-20 12:01
新手上路 Posts 2 Credits 2
It seems it doesn't work on my computer.
Floor14 wlei89512 Posted 2010-11-20 12:06
新手上路 Posts 2 Credits 2
The command taskkill /f /im Explorer.exe on Win7 cannot be executed
Floor15 nakay1 Posted 2010-11-21 13:55
初级用户 Posts 22 Credits 34
Got to study it well...
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023