The win7 cmd command shows that it is not an internal or external command, nor is it available

When win7 operates the cmd command, it displays "not an internal or external command, nor an executable program or batch file." It may be that the system does not open the Command command prompt. The solution is as follows: 1. Click [My Computer] on the desktop in turn - right-click the mouse and select [Select Properties] - then enter [Advanced System Settings]

  1. After clicking, enter the detailed configuration of advanced system settings, select [Environment Variables]

  1. After clicking, enter the detailed configuration of advanced system settings, select [Environment Variables]

3. After entering, you can see various variable information, search for the variable of [ComSpec], check whether its value is "%SystemRoot%\system32\cmd.exe", if not, modify it to the correct value

  1. Then find the [Path] variable, and paste the following statement to the back of PATH (the content in the quotation marks, including the semicolon) ";%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Windows\ SysWOW64"

  1. Finally, re-enter the cmd interface to open the cmd command

Guess you like

Origin blog.csdn.net/weixin_38642722/article/details/128927103