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

Windows 系統 .bat 批次檔預設開啟方式錯誤修復教學

編輯:關於 Windows

不小心將 .bat 檔案關聯到記事本或其他文字編輯器,導致所有批次檔雙擊開啟變成編輯模式。本文教學恢復 .bat 預設開啟方式(執行模式)。

修復步驟

  1. 按 Win+R,輸入 regedit 開啟登錄編輯器。

  1. 定位至:HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOWS\CurrentVersion\Explorer\FileExts\.bat,刪除 OpenWithList 與 OpenWithProgids 以外的所有項目。

  1. 在 OpenWithList 中刪除預設值以外的所有鍵值;在 OpenWithProgids 中刪除預設值與 lnkfile 以外的所有鍵值。
  2. 關閉登錄編輯器,若未生效請重開機,.bat 檔即恢復預設執行模式。
Copyright © Windows教程網 All Rights Reserved