1. 程式人生 > >Windows命令無法運行報錯:is not recognized as an internal

Windows命令無法運行報錯:is not recognized as an internal

報錯 win not mage 修改 image 命令 env 環境

發現bat文件即使手動運行也無法成功,於是打開CMD驗證,輸入命令提示如下錯誤:
技術分享圖片

“command” is not recognized as an internal or external command, operable program or batch file.

然後發現任何CMD命令都無法識別

原因:電腦用戶環境設置有問題,到如下位置修改:

鼠標右鍵點擊 My Computer-> Properties-> Advanced -> Environment Variables -> Path
在最前面添加:SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;

技術分享圖片

技術分享圖片

Windows命令無法運行報錯:is not recognized as an internal