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

Windows 7 執行 DOS 指令提示「非內部或外部命令」?修復 PATH 環境變數解決

編輯:Windows 7 系統介紹

在命令提示字元執行指令(如 ipconfig、ping)出現「不是內部或外部命令」,主因是系統環境變數 PATH 遺失系統路徑(%SystemRoot%\System32)。修復方法:

操作步驟

  1. 右鍵「電腦」→「內容」→ 左側「進階系統設定」。
  2. 「進階」索引標籤 →「環境變數」。
  3. 在「系統變數」區找到 Path,按「編輯」。若值中缺少 %SystemRoot%\System32;%SystemRoot%,請加入(以分號分隔)。

確定儲存後,開啟新的命令提示字元視窗即可正常執行系統指令。

Copyright © Windows教程網 All Rights Reserved