Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

DIY 批次檔:讓 REG 登錄檔匯入即時生效,免重啟

編輯:XP 系統基礎知識

雙點擊 .reg 檔匯入登錄檔後,通常需重新載入 explorer.exe、登出或重開機才能生效,相當麻煩。將 .reg 轉為 .bat 批次檔並執行,即可在匯入後自動重啟 Explorer,讓設定立即生效。

製作「REG 轉 BAT」批次檔

  1. 新建文字檔命名 REG轉BAT.bat,內容如下:
@echo off
copy %1 reg.bat
echo regedit /s %1 >> reg.bat
echo taskkill /f /im explorer.exe >> reg.bat
echo start explorer.exe >> reg.bat
  1. 將此 .bat 與欲轉換的 .reg 檔放在同一資料夾(如 F:\BAT)。
  2. 雙擊執行 REG轉BAT.bat,資料夾下會產生 reg.bat。
  3. 雙擊執行 reg.bat,即會匯入登錄檔並自動重啟 Explorer,設定即時生效。
批次檔內容示意圖

適用 Windows XP、Vista、Windows 7 等版本。善用此技巧,登錄檔調整不再需要繁瑕的重啟流程。

Copyright © Windows教程網 All Rights Reserved