How do you fix C :\ Program is not recognized as an internal or external command?

How do you fix C : Program is not recognized as an internal or external command?

This used to be a common issue before Windows 10 as Windows 7 and 8 had an annoying habit of using %SystemRoot% or helpful system administrators would add it as the default program path. It also happened occasionally when registry changes had been made with or without the user’s permission. If you’re seeing ‘program is not recognized as an internal or external command’ here is how to fix it.

The full error syntax is ‘PROGRAM is not recognized as an internal or external command, operable program or batch file’. Where you see PROGRAM, it would be a command, app or program you are trying to use or open that prompted the error.

Usually you see this error when using the command line. For example, if you are running Netstat, you would see ‘Netstat.exe is not recognized as an internal or external command, operable program or batch file’.

The error syntax indicates that there may be something wrong with the command, but there isn’t. It isn’t the command itself but the path used to access that command. In the above example, if you look in C:WindowsSystem32 you would see Netstat sitting there. The same would likely be true for whatever command you were using or program you were trying to call.

How do you fix C : Program is not recognized as an internal or external command?

Fix program is not recognized as an internal or external command

The fix is quite straightforward but you would be forgiven for not realizing what it was given the poor error syntax.

First we need to open a CMD window as an administrator.

  1. Right click Windows task bar and select Task Manager.
  2. Select File and Run new task.
  3. Type cmd into the window and check the box next to Create this task with administrator privileges.

Then:

Type ‘set path’ and hit Enter. You should see a return like the main image for this tutorial. A list of paths that Windows uses to find programs or commands.

If you have ‘C:WindowsSystem32’ it is starting well. If you see ‘%SystemRoot%’ it could be that entry causing issues.

  1. Type ‘control’ into the Cortana/Search Windows box and select Control Panel.
  2. Select System and Advanced system settings.
  3. Select the Environment Variables at the bottom of the Advanced tab.
  4. Highlight Path in the bottom box and select Edit.
  5. Make sure C:WindowsSystem32 is present. If it is, delete it and add it again.
  6. Confirm and close all windows and retest.
  7. If the retest fails, repeat this process and delete the %SystemRoot% entry.

In the vast majority of cases, adding, or re-adding C:WindowsSystem32 to the path will fix the ‘PROGRAM is not recognized as an internal or external command, operable program or batch file’ error. Otherwise, removing the %SystemRoot% entry should do the trick.

As long as you have C:WindowsSystem32 present, you shouldn’t need %SystemRoot% as they point to the same place. Plus, %SystemRoot% is known to cause issues when used as a system path on some configurations. There are applications out there that add registry entries that directly conflict with %SystemRoot% which is why removing it should work.

If you find issues with other programs not executing, you can repeat the above steps and reverse your changes. Just perform steps 1 to 4 and instead of Delete, select New and add the path you changed. Adding a path should not affect your computer in any way. It is most likely removing a path that would cause issues. If that is the case with your computer, just add %SystemRoot% again.

How do you fix C : Program is not recognized as an internal or external command?

Another way to fix program is not recognized as an internal or external command

If those two path changes don’t work, there is a workaround. You can simply put a shortcut to the program into C:WindowsSystem32 and that should make everything work fine.

  1. Right click the executable you are trying to use.
  2. Select Send to and Desktop to create a shortcut.
  3. Open Windows Explorer at C:WindowsSystem32.
  4. Drag the shortcut you just created into the System32 folder.

This is a less that optimal solution but can get the job done. It is much better to resolve the error with the correct paths than by creating a referral shortcut but it works when you need it to.

This is another prime example of coders at Microsoft writing error syntax for themselves rather than users. What the error tells you is nothing to do with what is actually wrong. Good job sites like TechJunkie are here to help!

Have you fixed program is not recognized as an internal or external command errors any other way? Tell us about it below if you have!

How to fix GWXUX has stopped working errors in Windows

Read Next 

How do you fix C : Program is not recognized as an internal or external command?

How do you fix make is not recognized as an internal or external command operable program or batch file?

If you already have MinGW installed in Windows 7, just simply do the following: Make another copy of C:\MinGW\bin\mingw32-make.exe file in the same folder. Rename the file name from mingw32-make.exe to make.exe . Run make command again.

Which is not recognized as an internal or external?

The “Python is not recognized as an internal or external command” error is encountered in the command prompt of Windows. The error is caused when Python's executable file is not found in an environment variable as a result of the Python command in the Windows command prompt.

Is not recognized as an internal or external command operable program or script file?

To solve the error "react-scripts is not recognized as an internal or external command, operable program or batch file", open your terminal in your project's root directory and install the react-scripts package by running npm install react-scripts and clear your npm cache if necessary. Copied!

What is an internal or external command?

An internal command is embedded into the command.com file, and an external command is not and requires a separate file to operate. For example, if your computer does not have the fdisk.exe file and you try using the fdisk command, you will receive a "Bad command or file name" error message.