command prompt (cmd) “ not recognized as an internal or external command” in Windows


command prompt (cmd) “ not recognized as an internal or external command” in Windows




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

Double check that the ping.exe exists in the WINDOWS\system32 folder.



Right click the My Computer icon then choose properties. Select Advanced tab and then click Environment Variables.



At the system variables panel, choose Path then click the Edit button.



Save the old value as a text file as backup
Edit the variable value separated by semicolons. 

Set PATH to c:\windows\system32 ;



Click OK and REBOOT


The value of the environment variable PATH is more than 1023 characters. This value cannot be set.

The value of the environment variable PATH is more than 1023 characters. This value cannot be set.





We can avoid this issue by editing PATH variable and removing unwanted characters or paths ( But make sure you are not going to remove any system related paths like %SYSTEMROOT% etc.. )

Navigation: My Computer –> right click –> properties –> Advanced –> Environment Variables –> Select PATH in system Variables. Then remove unwanted variables.

Once done with the above steps, press “retry” button to continue with the installation.