You install a tool such as Python, Java, Git, or ADB, open Command Prompt, type its name, and get the reply: “‘python’ is not recognized as an internal or external command, operable program or batch file.” When Windows 10 is not recognized as an internal or external command appears, Command Prompt simply cannot find the program you asked for.
When you type a command, Windows looks in the current folder and then in a list of folders stored in the PATH environment variable. If the program’s folder is not in that list, Windows has no idea where it lives, even though it is installed.
Many installers offer an “Add to PATH” checkbox slot88 that people skip. Others add the folder, but the Command Prompt window was already open and does not see the change.
Typos and missing system folders cause the same error for built-in commands too.
Why This Happens
The error appears for these reasons:
- The program’s folder is not in the PATH variable.
- Command Prompt was opened before the installer changed PATH.
- The command is misspelled or uses the wrong name, such as python3 instead of python.
- The PATH variable is damaged, so even built-in tools like ipconfig fail.
If basic commands such as ping or ipconfig also fail, the System32 folder has been removed from PATH.
Start With These Basic Checks
Rule out simple causes.
- Close every Command Prompt window and open a new one.
- Check the spelling and the exact command name in the tool’s documentation.
- Find the program’s .exe file in File Explorer and note its folder path.
- Try running it with the full path, for example “C:\Program Files\Git\bin\git.exe” –version.
- Reinstall the tool and tick “Add to PATH” if offered.
Going a Step Further
Add the folder to PATH manually.
- Press Windows + R, type sysdm.cpl, and press Enter.
- Open the Advanced tab and select Environment Variables.
- Under User variables or System variables, select Path and choose Edit.
- Select New, paste the folder that contains the .exe, and select OK on every window.
- Open a new Command Prompt and test the command.
If built-in commands fail, make sure C:\Windows\System32 and C:\Windows are listed in the System Path.
A Word of Caution
Do not delete existing entries from PATH unless you know what they are, since other programs depend on them. Take a screenshot of the list before editing it.
Final Thoughts
This error means Windows cannot find the command in its search path. Reopen Command Prompt, use the full path to test, and add the program’s folder to the PATH variable.
