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

Leave a Comment

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Error code 0xc0000098 in Windows causes a blue screen error on startup. The ACPI.sys driver is often to blame, especially on unsupported versions of Windows 11 like 23H2 or 22H2 or Windows 10.

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

In some cases, sometimes you start your computer in Safe Mode and the computer freezes. So how to fix the error in this case, please refer to the article below of WebTech360.

How to fix Snipping Tool keeps showing error

How to fix Snipping Tool keeps showing error

Snipping Tool is a powerful photo and video capture tool on Windows. However, this tool sometimes has some errors, such as constantly displaying on the screen.

How to get the fastest internet connection from your router

How to get the fastest internet connection from your router

Every network has a router to access the Internet, but not everyone knows how to make the router work better. In this article, we will introduce some router tips to help speed up the wireless connection in the network.

Common Mistakes When Performing Internet Speed ​​Tests

Common Mistakes When Performing Internet Speed ​​Tests

If the results seem slower than expected, don't be too quick to blame your ISP - mistakes when performing the test can skew your numbers.

What is QoS? How to use QoS for faster Internet speeds when you need it most

What is QoS? How to use QoS for faster Internet speeds when you need it most

In the article below, we will introduce and guide you to learn about the concept of QoS - Quality of Service on router devices.

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Windows has a built-in Credential Manager, but it's not what you think it is—and certainly not a replacement for a password manager.

How to install free HEVC codecs on Windows 10 (for H.265 video)

How to install free HEVC codecs on Windows 10 (for H.265 video)

Microsoft charges for its official codecs and doesn't include them in Windows 10. However, you can get them for free without pulling out your credit card and spending $0.99.

Instructions to fix Access Denied error when accessing files or folders on Windows

Instructions to fix Access Denied error when accessing files or folders on Windows

While having trouble accessing files and folders can be frustrating, don't panic—with a few simple tweaks, you can regain access to your system.

How to check if USB Boot has been created successfully?

How to check if USB Boot has been created successfully?

After creating a USB boot to install Windows, users should check the USB boot's performance to see if it was created successfully or not.

4 Types of Windows Data That Are Growing in Size: How to Control Them?

4 Types of Windows Data That Are Growing in Size: How to Control Them?

Although Windows Storage Sense efficiently deletes temporary files, some types of data are permanent and continue to accumulate.

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

You can turn off Windows 11 background apps to optimize performance, save battery and reduce RAM consumption.

Instructions to fix the error “Network path was not found” in Windows

Instructions to fix the error “Network path was not found” in Windows

When a computer, mobile device, or printer tries to connect to a Microsoft Windows computer over a network, for example, the error message network path was not found — Error 0x80070035 may appear.

How to block Internet connection of Windows 10 software and applications

How to block Internet connection of Windows 10 software and applications

We can block Internet access for any application or software on the computer, while other programs can still access the network. The following article will guide readers on how to disable Internet access for software and applications on Windows.

How to Stay Safe on Windows 10 Until 2030

How to Stay Safe on Windows 10 Until 2030

Instead of paying $30 for a year of security updates, keep Windows 10 safe until 2030 with this simple solution.

Solving Windows 11 Something Went Wrong During Upgrade

Solving Windows 11 Something Went Wrong During Upgrade

Struggling with the frustrating "Something Went Wrong" error during Windows 11 upgrade? Discover proven, step-by-step fixes to get your system updated smoothly and securely. Say goodbye to upgrade headaches!

Troubleshooting Windows 11 Printer Error 709 After Update

Troubleshooting Windows 11 Printer Error 709 After Update

Struggling with Printer Error 709 on Windows 11 after a recent update? Discover proven troubleshooting steps to resolve this issue and get your printing back on track without frustration. Step-by-step guide for smooth fixes.

How to Use Windows 11 Accessibility Features 2026

How to Use Windows 11 Accessibility Features 2026

Discover how to harness the latest Windows 11 accessibility features in 2026 to make your computing experience inclusive, efficient, and empowering. Step-by-step guides for everyone.

Troubleshooting Java Development Kit (JDK) Install Failures

Troubleshooting Java Development Kit (JDK) Install Failures

Struggling with JDK install failures? Dive into this comprehensive troubleshooting guide to resolve common Java Development Kit issues on Windows, macOS, and Linux. Get back to coding without the hassle.

Troubleshooting Windows 11 Sticky Notes Database Error

Troubleshooting Windows 11 Sticky Notes Database Error

Struggling with the Windows 11 Sticky Notes database error? Discover proven troubleshooting steps to restore your notes quickly and effortlessly. Get back to productivity without the frustration.

How to Fix Windows 11 Rainmeter Skin Positioning Error

How to Fix Windows 11 Rainmeter Skin Positioning Error

Struggling with Rainmeter skin positioning errors on Windows 11? Discover proven fixes for misalignment, dragging issues, and DPI glitches. Step-by-step guide to restore your desktop perfection.

How to Use Windows 11 Virtual Desktops Correctly

How to Use Windows 11 Virtual Desktops Correctly

Discover how to use Windows 11 virtual desktops correctly to supercharge your workflow. Learn setup, management, and pro tips for seamless multitasking without the overwhelm.

Converting MBR to GPT Without Data Loss in Windows 11

Converting MBR to GPT Without Data Loss in Windows 11

Discover how to safely convert MBR to GPT without data loss in Windows 11. Follow our step-by-step guide using built-in tools and third-party software for a seamless upgrade to modern partitioning.

How to Fix 0x80072ee7 Store Connectivity Error

How to Fix 0x80072ee7 Store Connectivity Error

Struggling with the 0x80072ee7 Store connectivity error? Discover proven, step-by-step fixes to restore your Microsoft Store access quickly and easily. Say goodbye to frustrations!

How to Fix Background Change Error on Windows 11 Pro

How to Fix Background Change Error on Windows 11 Pro

Struggling with background change errors on Windows 11 Pro? This step-by-step guide helps gamers fix the issue fast, restoring your custom setups without hassle. Discover proven methods to personalize your desktop effortlessly.

How to Setup Windows 11 Dynamic Refresh Rate

How to Setup Windows 11 Dynamic Refresh Rate

Discover how to set up Windows 11 Dynamic Refresh Rate for buttery-smooth performance on compatible displays. Follow our step-by-step guide to optimize your PC

How to Fix Windows 11 Memory Leaks in Browsers

How to Fix Windows 11 Memory Leaks in Browsers

Struggling with slow browsers on Windows 11? Discover proven fixes for memory leaks in Chrome, Edge, Firefox, and more. Boost performance and end frustration today.

Solving Windows 11 Photos App File System Error

Solving Windows 11 Photos App File System Error

Struggling with the Windows 11 Photos App File System Error? Discover proven, step-by-step fixes to restore your photo viewing experience without hassle. Updated with the latest troubleshooting tips for seamless performance.

Troubleshooting Windows 11 OBS Studio Black Screen Fix

Troubleshooting Windows 11 OBS Studio Black Screen Fix

Struggling with OBS Studio black screen on Windows 11? Discover proven fixes for smooth streaming and recording. Step-by-step guide to resolve black screen issues quickly and easily.

Solving GPT Partition Style Not Supported on Old PCs

Solving GPT Partition Style Not Supported on Old PCs

Struggling with "GPT Partition Style Not Supported" error on your old PC? Discover proven solutions to convert partitions safely, upgrade your system, and get back to smooth computing without data loss. Perfect for legacy hardware users.