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

Windows 8 命令提示字元指令失效?修復 Path 環境變數恢復系統指令

編輯:Win8 系統基礎知識

Windows 8 CMD 指令全部失效「非內部或外部指令」解決方法

若命令提示字元輸入任何指令(如 ping、ipconfig)皆提示「不是內部或外部指令」,通常是 Path 環境變數遺失系統路徑。以下修復步驟。

修復步驟

  1. 桌面「電腦」按右鍵 →「內容」。
  2. 電腦內容 系統視窗
  3. 左側選「進階系統設定」。
  4. 進階系統設定
  5. 「進階」頁籤 →「環境變數」。
  6. 環境變數
  7. 在「系統變數」區找到 Path,按「編輯」。
  8. 編輯 Path 變數
  9. 將變數值設為:
    %SystemRoot%\System32;%SystemRoot%\System32\WindowsPowerShell\v1.0\
    按「確定」儲存,重新開機測試。
  10. Path 正確數值

原理: 系統指令執行檔位於 C:\Windows\System32 與 PowerShell 目錄,Path 遺失這兩個路徑會導致所有系統指令找不到執行檔。

Copyright © Windows教程網 All Rights Reserved