Instructions to fix the error “not recognized as an internal or external command” when using CMD in Windows

Yes, this case happens very often, especially for those who install many programs, programming applications such as Java, set up their own servers... which directly affects the Windows Environment. That is the error:

  • 'cmd command syntax' is not recognized as an internal or external command, operable program or batch file.

This error phenomenon is that if you type any command syntax into CMD - Windows Command, such as Ping, ipconfig... you will receive the above error message.

Instructions to fix the error “not recognized as an internal or external command” when using CMD in Windows

So how to fix this error "is not recognized as an internal or external command...". Please refer to the article below of WebTech360!

See more reference articles about basic commands in CMD here.

What causes this "is not recognized as an internal or external command..." error on Windows?

As mentioned above, this error occurs when you install programs that affect the Windows Environment Variables section such as programming applications, server creation... When these environment variable values ​​change, it will cause "misunderstanding" or confusion when Windows executes a program or command.

How to fix the error "is not recognized as an internal or external command...":

Verify that the program is installed

Instructions to fix the error “not recognized as an internal or external command” when using CMD in Windows
Verify that the program is installed

Command Prompt cannot run a program that does not exist. If you are trying to run a newly installed program, make sure it was installed correctly.

To verify the installation:

1. Press Win + R to open Run . Then type control and click OK.

2. Then, in Control Panel , go to Programs > Programs and Features .

3. Scroll through the list of installed apps and find the one you want to run.

Alternatively, you can also view installed apps by going to Apps and Features in Settings. To do this, press Windows key + I , click Apps and find the installed app.

By default, when you try to launch a program or a script from CMD, the command prompt looks for relevant files and paths in the System32 folder or environment variables. If the file is missing, it returns an error "is not recognized as an internal or external command, operable program or batch file".

This may be because Windows does not install most applications in the System32 folder, but instead in C:\Program Files.

You can solve this problem in three ways:

1. First, use the full path of the executable file to launch the program.

2. Second, add the program path to the Windows environment variables.

3. Finally, move the files to the System32 folder.

Use full file path to execute command

Instructions to fix the error “not recognized as an internal or external command” when using CMD in Windows
Use full file path to execute command

First, let's try the full path method. Here, we'll use the full file path instead of the application name to launch programs from Command Prompt. Here's how to do it:

1. First, open Command Prompt with admin rights .

2. Next, enter the full path of the application you want to launch. For example, if you want to open ESBCalc Port located in the C:\ folder , the command to open the application with the full path would look like this:

C:\ESBCalcPort.exe

3. However, this will only work if the file path does not have any spaces. If your file path has spaces, enter the file path inside double quotes.

Use full file path in quotes

Instructions to fix the error “not recognized as an internal or external command” when using CMD in Windows
Use full file path in quotes

Command Prompt reads spaces at the end of a command and treats anything after the space as a separate command.

Suppose you want to launch the Internet Explorer application in C:\Program Files\Internet Explorer\iexplore.exe via CMD. However, running this file path returns an error due to the space between Program Files and Internet Explorer .

To avoid this, you can enclose the file path in double quotes. Here, the command to launch Internet Explorer would look like this:

"C:\Program Files\Internet Explorer\iexplore.exe"

Add file path to Windows Environment Variables

You can edit the Environment Variables and add the application's file path to its folder. This way, Command Prompt will determine the path for the entered command and execute it without error.

Adding the full file path to Windows Environment Variable can help you resolve the “not recognized as an internal or external command” error for Flex, nmake, make, cobra, Is, terraform, gcc, code, Android Studio, Python, Fastboot, and ADB commands.

To edit the Windows Environment Variable:

1. Press Win + R to open Run.

2. Next, type control and click OK to open Control Panel .

3. Go to System and Security > System . In the left pane, click Advanced System Settings .

Instructions to fix the error “not recognized as an internal or external command” when using CMD in Windows
Click Advanced System Settings

4. On newer versions of Windows 10, go to Settings > System > About . Then, click Advanced system settings under Related settings.

5. In the Advanced tab , click the Environment Variables button.

Instructions to fix the error “not recognized as an internal or external command” when using CMD in Windows
Click the Environment Variables button

6. In the new window, under System variables , select the Path variable.

7. Click the Edit button.

8. In the Edit window , click New.

Instructions to fix the error “not recognized as an internal or external command” when using CMD in Windows
Click New

9. Here, you have to paste the file path of the program that you want to run from CMD. For example, if you want to run the Chrome browser located in C:\Program Files\Google\Chrome\Application, then the full path of the file will be like this:

C:\Program Files\Google\Chrome\Application

10. Click OK to add it to Environment Variables.

Then click OK on all open windows to save the changes.

Once you have added the new environment variable, open Command Prompt , type the program name and CMD will open it without any errors.

Move the file to the System32 folder

Instructions to fix the error “not recognized as an internal or external command” when using CMD in Windows
Move the file to the System32 folder

System32 is a protected system folder and it is protected for a good reason. When you try to run a program with admin rights, Command Prompt will look for the executable file in the System32 folder. However, since all programs are not installed in the System32 folder, you may get an error.

If you still want to run the program from CMD and don't want to type the full file path, you can move the program file to the System32 folder.

To move program files to the System32 folder:

1. Navigate to the installation folder for the program and copy all the files in the folder. Here, we will move the Google Chrome files located in C:\Program Files\Google\Chrome\Application to the System32 folder.

2. Next, navigate to the C:\Windows\System32 folder and paste the copied files. Click Yes if the UAC prompt appears.

3. Next, open Command Prompt with admin rights, type chrome and press Enter. CMD will immediately open Google Chrome browser .

Good luck!

Tags: #System
Sign up and earn $1000 a day ⋙

Leave a Comment

Fix Copy Paste command not working on Word, Excel (2007, 2010)

Fix Copy Paste command not working on Word, Excel (2007, 2010)

There are many reasons why the Copy Paste command does not work on a Windows computer, such as your computer is attacked by a virus, the clipboard does not work, and therefore the copy command (Ctrl + C) and the paste command (Ctrl + V) do not work. So how to fix this error, please refer to the article below of WebTech360.

Fix function keys not working in Windows 10

Fix function keys not working in Windows 10

The Fn function keys give you a quicker and easier way to control some hardware features.

How to remove yellow triangle warning on Windows C drive

How to remove yellow triangle warning on Windows C drive

This out-of-place indicator usually means that BitLocker encryption has been disabled, an update requires a reboot, or a firmware upgrade is pending.

Instructions to change Google DNS 8.8.8.8 and 8.8.4.4

Instructions to change Google DNS 8.8.8.8 and 8.8.4.4

Google DNS 8.8.8.8 8.8.4.4 is one of the DNS chosen by many users, especially to increase network access speed or access blocked Facebook.

How to use TickTick desktop widget instead of to-do apps

How to use TickTick desktop widget instead of to-do apps

Once you put your to-do lists on Windows 11's widget panel, they start appearing in front of you every morning—and suddenly, it's not so easy to ignore them anymore.

How to Open Windows Security in Windows 10

How to Open Windows Security in Windows 10

Windows Security is turned on and proactively protects your device by scanning for malware, viruses, and other security threats.

How to Free Up 48GB on Windows 11 PC Without Losing Any Important Data

How to Free Up 48GB on Windows 11 PC Without Losing Any Important Data

Between temporary files, outdated backups, duplicate data, and unused apps, there are plenty of ways to reclaim space without touching your personal files.

How to view computer configuration easily and quickly

How to view computer configuration easily and quickly

There are many ways for you to view your computer configuration, view your laptop configuration.

Check MD5 and SHA1 to check file integrity

Check MD5 and SHA1 to check file integrity

We will use a specialized program to check the MD5 and SHA1 codes of the file to see if there are any errors in the file. And the MD5 check software HashCalc is one of the quite useful tools to check MD5 and SHA1 codes.

What is the AppData folder in Windows? When should I use it?

What is the AppData folder in Windows? When should I use it?

Have you ever stumbled upon the mysterious AppData folder while rummaging through files on your computer or trying to get a Minecraft mod to work?

How to show hidden files and folders on Windows 10/8/7

How to show hidden files and folders on Windows 10/8/7

To view hidden files, hidden folders, hidden system files on Windows is quite simple. Readers can see detailed instructions on showing hidden files and viewing file extensions in this article.

Fix Windows + Shift + S shortcut not working on Windows 10

Fix Windows + Shift + S shortcut not working on Windows 10

The Win + Shift + S shortcut in Windows 10 allows users to capture a portion or the entire screen and copy it to the clipboard. In most cases, this feature works as expected, but sometimes it can become unresponsive.

12 ways to quickly access Settings on Windows 10

12 ways to quickly access Settings on Windows 10

On Windows 10, Microsoft integrated a new application called Settings. This Settings application is a Metro application created by Microsoft to replace the classic Control Panel application.

List of useful Alt shortcuts to insert special characters in Windows

List of useful Alt shortcuts to insert special characters in Windows

Simply hold down the Alt key and type the corresponding number to insert a special character. If you have memorized the code of your favorite special character, you can insert it in less than a second.

Instructions to fix the error “not recognized as an internal or external command” when using CMD in Windows

Instructions to fix the error “not recognized as an internal or external command” when using CMD in Windows

One day, you turn on your computer, go to CMD and get the error is not recognized as an internal or external command, operable program or batch file. What should you do?

Fix Copy Paste command not working on Word, Excel (2007, 2010)

Fix Copy Paste command not working on Word, Excel (2007, 2010)

There are many reasons why the Copy Paste command does not work on a Windows computer, such as your computer is attacked by a virus, the clipboard does not work, and therefore the copy command (Ctrl + C) and the paste command (Ctrl + V) do not work. So how to fix this error, please refer to the article below of WebTech360.

Fix function keys not working in Windows 10

Fix function keys not working in Windows 10

The Fn function keys give you a quicker and easier way to control some hardware features.

How to remove yellow triangle warning on Windows C drive

How to remove yellow triangle warning on Windows C drive

This out-of-place indicator usually means that BitLocker encryption has been disabled, an update requires a reboot, or a firmware upgrade is pending.

Instructions to change Google DNS 8.8.8.8 and 8.8.4.4

Instructions to change Google DNS 8.8.8.8 and 8.8.4.4

Google DNS 8.8.8.8 8.8.4.4 is one of the DNS chosen by many users, especially to increase network access speed or access blocked Facebook.

How to use TickTick desktop widget instead of to-do apps

How to use TickTick desktop widget instead of to-do apps

Once you put your to-do lists on Windows 11's widget panel, they start appearing in front of you every morning—and suddenly, it's not so easy to ignore them anymore.

How to Open Windows Security in Windows 10

How to Open Windows Security in Windows 10

Windows Security is turned on and proactively protects your device by scanning for malware, viruses, and other security threats.

How to Free Up 48GB on Windows 11 PC Without Losing Any Important Data

How to Free Up 48GB on Windows 11 PC Without Losing Any Important Data

Between temporary files, outdated backups, duplicate data, and unused apps, there are plenty of ways to reclaim space without touching your personal files.

How to view computer configuration easily and quickly

How to view computer configuration easily and quickly

There are many ways for you to view your computer configuration, view your laptop configuration.

Check MD5 and SHA1 to check file integrity

Check MD5 and SHA1 to check file integrity

We will use a specialized program to check the MD5 and SHA1 codes of the file to see if there are any errors in the file. And the MD5 check software HashCalc is one of the quite useful tools to check MD5 and SHA1 codes.

What is the AppData folder in Windows? When should I use it?

What is the AppData folder in Windows? When should I use it?

Have you ever stumbled upon the mysterious AppData folder while rummaging through files on your computer or trying to get a Minecraft mod to work?

How to show hidden files and folders on Windows 10/8/7

How to show hidden files and folders on Windows 10/8/7

To view hidden files, hidden folders, hidden system files on Windows is quite simple. Readers can see detailed instructions on showing hidden files and viewing file extensions in this article.

Fix Windows + Shift + S shortcut not working on Windows 10

Fix Windows + Shift + S shortcut not working on Windows 10

The Win + Shift + S shortcut in Windows 10 allows users to capture a portion or the entire screen and copy it to the clipboard. In most cases, this feature works as expected, but sometimes it can become unresponsive.

12 ways to quickly access Settings on Windows 10

12 ways to quickly access Settings on Windows 10

On Windows 10, Microsoft integrated a new application called Settings. This Settings application is a Metro application created by Microsoft to replace the classic Control Panel application.

List of useful Alt shortcuts to insert special characters in Windows

List of useful Alt shortcuts to insert special characters in Windows

Simply hold down the Alt key and type the corresponding number to insert a special character. If you have memorized the code of your favorite special character, you can insert it in less than a second.