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

Win7 無法執行 CMD?環境變數 Path 遺失系統路徑,補回 System32 即可恢復

編輯:Win7 系統應用技巧

輸入 cmd 提示「無法辨識的內部或外部命令」,主因為系統環境變數 Path 遺失 %SystemRoot%\System32 路徑,導致系統找不到 cmd.exe。

修復步驟

  1. 右鍵「電腦」→「內容」→ 「進階系統設定」。
  2. 「進階」頁籤 → 「環境變數」。
  3. 「系統變數」區找到 Path,雙擊編輯 (或新增)。
  4. 變數值最前端或末端加入:%SystemRoot%\System32 (多路徑以分號 ; 分隔)。
  5. 確定所有視窗,重新開啟 CMD 測試。

系統內容進階系統設定
環境變數視窗
編輯 Path 變數

此問題常由第三方軟體安裝/解除安裝誤刪 Path 變數導致。修復後建議檢查 Path 是否包含其他關鍵路徑 (%SystemRoot%, %SystemRoot%\System32\Wbem 等)。

Copyright © Windows教程網 All Rights Reserved