Windows命令无法运行报错:is not recognized as an internal

发现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;

转载于:https://blog.51cto.com/helpdesk/2396063

你可能感兴趣的:(Windows命令无法运行报错:is not recognized as an internal)