Windows Error “Not recognized as an internal or external program”

Solution: This is because the %SystemRoot%\System32 value is not part of the system PATH variable or there is a problem with the Operating System when expanding the %SystemRoot%\System32 to C:\Windows\system32.

Steps to solve this
Check the following as a possible solution
– Go to Control Panel
– System and Security 
– Click Advanced system settings


– From the Control Panel
– Click on System and Setting
– Click on System
– Click on Advanced System settings

  • Click the Environment Variables…  button
  • Find the Path System variable, highlight it and click the Edit… button
  • Make sure it has %SystemRoot%\System32; in the variable value. If it is missing add it and click OK as shown below