1、在桌面上新建一个文本文档,双击打开,复制以下代码:
set wsHshell = wscript.Createobject("wscript.shell")
Message = "本脚本用于修复windows xp中当最小化程序时,无法在任务栏显示图标的问题。"& vbCR & vbCR
Message = Message & "为了正常工作,本脚本将关闭和重启 windows Explorer 外壳,这个操作不会损坏你的系统。" & vbCR & vbCR
Message = Message & "请关闭所有杀毒软件的实时监控!并保存所有打开的文件。"& vbCR & vbCR
Message = Message & "是否继续?"
x = MsgBox(Message, vbYesno+vbExclamation, "注意")
if x = 6 Then
on Error Resume next
wshshell.Regdelete "HKCUsoftwareMicrosoftwindowsCurrentVersionExplorerstuckRects2"
wshshell.Regdelete "HKCUsoftwareMicrosoftwindowsCurrentVersionExplorerstreamsMRU"
wshshell.Regdelete "HKCUsoftwareMicrosoftwindowsCurrentVersionExplorerstreamsdesktop"
wshshell.Regdelete "HKCUsoftwareMicrosoftinternet ExplorerExplorer Bars{32683183-48a0-441b-a342-7c2a440a9478}Barsize"
p1 = "HKCUsoftwareMicrosoftwindowsCurrentVersionpoliciesExplorer"
wshshell.Regwrite p1 & "noBandCustomize", 0, "REG_dwoRd"
wshshell.Regwrite p1 & "noMovingBands", 0, "REG_dwoRd"
wshshell.Regwrite p1 & "noClosedragdropBands", 0, "REG_dwoRd"
wshshell.Regwrite p1 & "nosetTaskbar", 0, "REG_dwoRd"
wshshell.Regwrite p1 & "noToolbarsonTaskbar", 0, "REG_dwoRd"
wshshell.Regwrite p1 & "nosavesettings",0,"REG_dwoRd"
wshshell.Regwrite p1 & "noToolbarsonTaskbar", 0, "REG_dwoRd"
wshshell.Regwrite p1 & "nosetTaskbar",0,"REG_dwoRd"
wshshell.Regwrite p1 & "noActivedesktop",0,"REG_dwoRd"
wshshell.Regwrite p1 & "Classicshell",0,"REG_dwoRd"
p1 = "HKCUsoftwareMicrosoftwindowsCurrentVersionGroup policy objects本地UsersoftwareMicrosoftwindowsCurrentVersionpoliciesExplorer"
wshshell.Regwrite p1 & "noClosedragdropBands", 0, "REG_dwoRd"
wshshell.Regdelete p1 & "noMovingBands"
p1 = "HKLMsoftwareMicrosoftwindows nTCurrentVersionwinlogonshell"
wshshell.Regwrite p1, "explorer.exe", "REG_sZ"
p1 = "HKCUsoftwareMicrosoftinternet ExplorerExplorer Bars{32683183-48a0-441b-a342-7c2a440a9478}"
wshshell.Regdelete p1 & "Barsize"
wshshell.Regwrite p1, "媒体区", "REG_sZ"
on Error Goto 0
For Each process in Getobject("winmgmts:"). _
ExecQuery ("select * from win32_process where name='explorer.exe'")
process.terminate(0)
next
MsgBox "完成!" & vbcr & vbcr & "?Kelly Theriot and doug Knox", 4096, "完成"
Else
MsgBox "没有对你的系统进行任何改变。" & vbcr & vbcr & "?Kelly Theriot and doug Knox", 4096, "用户取消了"
End if
2、点击“文件”—“另存为”,将保存类型修改为“所有文件”,将文件名修改为“修复任务栏.bat” 点击保存;
3、双击打开“修复任务栏.bat”,按提示进行操作,完成后任务栏就恢复正常了!
友情链接:
本站发布的资源仅为个人学习测试使用!不得用于任何商业用途!请支持购买微软正版软件!
如侵犯到您的版权,请通知我们!我们会第一时间处理! Copyright?2021 专注于win7系统版权所有 川ICP备128158888号-8