'cmd' is not recognized as an internal or external command, operable program or batch file

折月煮酒 提交于 2019-11-28 14:07:57

So far I understand this is not your IDE issue.Check your "system32" is correctly defined in the PATH environment variable .

Path = %SystemRoot%\system32;

you can get it worked in anyone of below ways

  1. Set path to system32 c:\windows\system32 instead of %SystemRoot%\system32
  2. Go to system32 folder then search and find cmd.exe
  3. Use command instead of cmd.exe

We can get cmd.exe with already setted System root path in very simple way

  1. simply copy cmd.exe from Windows/System32 folder and paste it in directory where it is needed.

One variable named Path was already set but i created a new variable which is PATH so it replaced the Path variable so Path = %SystemRoot%\system32; got deleted.

SO the conclusion is you were trying to install java or maven and you replaced Path with PATH and its gone.

So set the SystemRoot path in environment variable something like below.

PATH = %JAVA_HOME%\bin;%M2_HOME%\bin;%SystemRoot%\system32;

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!