CMD 中輸入任何指令(如 ipconfig、ping、netstat)皆提示「不是內部或外部命令,也不是可執行的程式或批次檔」,主因是系統關鍵路徑 %SystemRoot%\System32 從 PATH 環境變數中遺失。兩分鐘即可修復。
path %windir%\system32 → Enter。%SystemRoot%\system32%SystemRoot%%SystemRoot%\System32\Wbem%SystemRoot%\System32\WindowsPowerShell\v1.0\%windir% 變數,在「系統變數」新增:變數名 windir,值 C:\Windows(或實際系統盤)。修復後建議執行 sfc /scannow 檢查系統檔案完整性,並掃毒排除惡意程式殘留。