Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

WinXP 任務列異常(變寬、跑到頂端)一鍵修復:自製批次檔重置註冊表與 Explorer

編輯:關於 Windows

Windows XP 任務列常因註冊表損壞導致寬度異常、位置錯位。與其手動調整,不如製作一個批次檔(.bat),雙擊即可自動重置相關註冊表鍵值並重啟 Explorer,瞬間恢復預設狀態。

批次檔內容(複製儲存為 FixTaskbar.bat)

@echo off
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamsMRU" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop" /f
reg delete "HKCU\Software\Microsoft\Internet Explorer\Explorer Bars\{32683183-48a0-441b-a342-7c2a440a9478}" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoToolbarsOnTaskbar" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoSetTaskbar" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoCloseDragDropBands" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoMovingBands" /f
regsvr32 stobject.dll /s
regsvr32 webcheck.dll /i /s
taskkill /f /im explorer.exe && explorer.exe

製作與使用步驟

  1. 桌面右鍵 → 新增 → 文字文件,命名為 FixTaskbar.bat。
  2. 用記事本開啟,貼上上述程式碼並儲存。
  3. 任務列異常時,雙擊執行該批次檔(建議以系統管理員身分執行)。
  4. 執行完成後,右鍵任務列空白處 → 工具列 → 勾選「快速啟動」與「語言列」恢復慣用工具列。

新建文字文件

貼上程式碼

另存為 .bat

選擇儲存位置

輸入檔名

生成批次檔

雙擊執行

恢復工具列

原理說明

  • 批次檔刪除記錄任務列佈局、流資料、原則限制的註冊表分支。
  • 重新註冊 stobject.dll、webcheck.dll 修復 Shell 擴充元件。
  • 強制重啟 explorer.exe 套用變更。
Copyright © Windows教程網 All Rights Reserved