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

解決 Windows 下「ping 不是內部或外部命令」的路徑問題

編輯:系統常見問題解答

當命令提示符提示「ping 不是內部或外部命令」時,通常是系統 PATH 環境變量缺少 %SystemRoot%\System32 路徑導致。請依以下步驟排查修復:

  1. 打開「系統屬性」→「高級」→「環境變量」。
  2. 在「系統變量」中找到 Path,點擊編輯。
  3. 確認變量值包含 %SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem 等核心路徑。若缺失,請以分號 ; 分隔追加。
  4. 若用戶變量中也有 Path,同樣檢查並補全。
  5. 修改完成後,必須重新打開命令提示符才能生效。

示例正確的 Path 值:

Path=%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft Network Monitor 3\;...

若仍無效,可嘗試清空 Path 後逐項添加核心路徑測試,確認是否為某第三方路徑導致衝突。

Copyright © Windows教程網 All Rights Reserved