Win7 開啟 CMD 輸入 ping 提示「不是內部或外部命令,也不是可執行的程式」,原因是系統環境變數 Path 遺失 %SystemRoot%\System32 路徑。
ping
Path
%SystemRoot%\System32
%SystemRoot%\System32;
原理:系統核心指令 (ping, ipconfig 等) 位於 System32,Path 缺失此路徑導致 Shell 找不到指令。
ipconfig
System32