The Commvà Prompt lets you run a variety of executable files và get complex tasks done in a jiffy. Through it, anyone with an administrator’s tài khoản can access and change settings that otherwise wouldn’t be possible.

Bạn đang xem: “is not recognized as an internal or external command” error

But this command interpreter has a specific language that one must know how khổng lồ read và write. Even the smallest mistake can render the command useless và generate error messages. One of the most comtháng ones being the “not recognized as an internal or external command…” error.

So, what exactly causes this “not recognized as an internal or external command” error & how can one fix it? We’ll explain.

Related: Common Windows 10 2004 issues và available fixes: Detailed list

“Is not recognized as an internal or external command” error causes: 6 ways to lớn fix the “is not recognized as an internal or external command” error Fix: Pybé is not recognized as an internal or external command

What does the “is not recognized as an internal or external command” mean?


This error message could basically mean one of two things:

The filename of the executable was entered without extension & without the whole path.Windows didn’t find the executable that matched the filename, including its extension, in any directory mentioned in Environment Variables “Path”. 

“Is not recognized as an internal or external command” error causes:

The error occurs, as the message itself suggests, when the Command Prompt program cannot recognize the tệp tin or program that you wanted to lớn use or exedễ thương. But there can be other problems too.

1. Executable or script not installed

It is possible that the program that you want to exexinh tươi via command prompt isn’t installed properly on your system. A corrupt installer is the most common cause for this. Either that or the installed executable tệp tin is not located in the directory where the command interface is looking for it. 

2. Filename and path not specified correctly

The most comtháng cause of the error is a typing mistake while entering the commvà. Moreover, if you haven’t specified the path properly, the command prompt wouldn’t know where lớn look for the tệp tin và thus, render the error.

If you’re getting the error, it is important to lớn kiểm tra your comm& character by character to ensure it is specified correctly.

3. File Directory not found in Windows Environment Variables

Another possibility is that the directory of the tệp tin that you’re trying to exeđáng yêu doesn’t exist in Windows Environment Variables. The series of directories known as “Path” resides under System Variables in Windows Environment Variables, & is required for the commands to be executed. That is where your file directory must be as well, especially if you’re not specifying the complete path of your file in the commvà prompt. 

But some programs, viruses, and malware can change these environment variables. If this happens, then the commvà Prompt wouldn’t be able to lớn recognize the commands or execute them.

4. Executables in system32 not found on 64-bit Windows

For those using 64-bit Windows, there can be another potential cause of the error.

Windows 64-bit programs have sầu “C:WindowsSystem32” as their directory, while 32-bit programs have sầu “C:WindowsSysWOW64” as their directory.

Although most of the executables are found in both of these directories, there are some that exist only in System32, và only a handful in SysWOW64.

By default, the Windows Environment Variables “Path” contains the folder C:WindowsSystem32. That means when running in a 64-bit environment, the command prompt is looking for the path directory in C:WindowsSystem32. Therefore if you want lớn run 32-bit programs, you have sầu lớn exedễ thương them in a 32-bit environment.

6 ways khổng lồ fix the “is not recognized as an internal or external command” error

Fixing the “not recognized as an internal or external command” error mainly has to lớn bởi with correcting the problems mentioned above. With that in mind, let us look at the fixes one at a time.

Method #01: Cheông chồng if the Program is installed

First và foremost, ensure that the program that you’re trying khổng lồ execute through Comm& Prompt is actually installed on your system và is at the appropriate location. You can check if the program is actually installed on your PC in a couple of different ways. 

One way is to kiểm tra the list of “Apps và Features” from Windows Settings. Here is how you can vì so:

Press Win+I to open Settings & select Apps.


With Apps & features selected in the left pane, you will see the danh mục of programs in the right pane. 


If the program is not displayed here, open up File Explorer (Win+E) & navigate to lớn the following folder:



This directory contains all your applications’ system files. Scroll through and kiểm tra if the program you’re trying to run is available (with its executable file). If it’s not, the application is not installed in this thư mục và you most likely can’t exedễ thương the application by simply typing in its file name. This matter can be addressed by the following.

Method #02: Move sầu the file to lớn the System32 Folder

When you’re trying khổng lồ run a program or an executable file from Command Prompt, the latter searches through the System32 thư mục & runs the tệp tin. But if the file is not there, as can be the case with some programs, you can move sầu it to the System32 thư mục. Here’s how you can vì so.

Note: You will need khổng lồ be logged in khổng lồ an administrative account for the following.

First up, go lớn your program’s location and copy all the files that are in the folder (select all the files và press Ctrl+C for this). In our example, we want to lớn run Microsoft Edge (msedge.exe) through the comm& prompt & are copying all the files present in the application’s thư mục.


And pasting the files (Ctrl+V) in the C:WindowsSystem32 folder. 

Now, if you just enter the name of the executable file, your comm& will run without errors.


Method #03: Provide the full path of the file

Another important thing to keep in mind while typing the command is that the Commvà Prompt doesn’t know where the tệp tin is located. If you don’t want to lớn copy the files lớn the System32 folder, you will have sầu to specify the exact location of the executable that you want khổng lồ run.

For instance, if you’re trying to exedễ thương PowerToys.exe cộ located in the PowerToys folder in C drive, the comm& might look like this:



This method works only if there are no spaces in your commvà. But if there is a space somewhere in your file’s path, then you have sầu khổng lồ do the following.

Xem thêm: Các Lệnh Cơ Bản Trong Ms Dos Trong Ms, Các Lệnh Cơ Bản Trong Ms Dos: Bạn Có Biết!

Method #04: Insert the whole tệp tin path within double quotes

The “not recognized as an internal or external command” error can also be the result of improper use of the comm& lines, especially when inserting tệp tin paths.

In the command prompt, a “space” is read as the over of the commvà. Anything entered after a space entered through the “space” or “tab” key will be read as an argument. So, if there are spaces in your tệp tin path’s location, ensure that you encthua thảm the path within double quotes. 

In our example below, we have khổng lồ run the steamservice.exe pháo file which is within the thư mục C:Program Files (x86)Common FilesSteam. So, to ensure that the space in the ‘Common Files’ folder is not read as the kết thúc of the command, we will insert the whole tệp tin path within double-quotes. Like this:

"C:Program Files (x86)Common FilesSteamsteamservice.exe"


Method #05: Change Environment Variables

Windows Environment Variables is the các mục of paths khổng lồ common system applications that the Commvà Prompt uses lớn execute programs swiftly. If these environment variables are altered, the command interface won’t be able khổng lồ find the location of the executable và render the error. 

A simple way khổng lồ fix this is by editing the environment variables & adding the appropriate tệp tin path there. Doing so will also allow you lớn run the executable by entering just the name of the tệp tin. This is how you can bởi vì so:

Press Win+R to lớn open the RUN box & search for “Control Panel”.


Cliông chồng on System and Security.


Clichồng on System.


In the left sidebar, clichồng on Advanced system settings.


In the “System properties” window, cliông chồng on Environment Variables at the bottom. 


This will open up the “Environment Variables” window. Here, under “System variables” cliông xã khổng lồ select the Variable that says Path, & then cliông chồng on Edit.


Now, to lớn add a new variable value (file location), click on New.


Here, add the folder path lớn the program/application you want to run through Commvà Prompt.


You can either bởi this by simply going to lớn where your application (chrome.exe pháo in our example) is installed & copying the path…


… and pasting it in the environment variable window;


Or through the environment variable window itself. For this, cliông xã on Browse.


Then navigate khổng lồ the folder, select it, và cliông chồng on OK.


Once you have sầu added this new environment variable for the Comm& Prompt lớn access, click OK on all open windows. If you now open Comm& Prompt và simply enter the name of the executable tệp tin, your application will open promptly.


Method #06: Change directory khổng lồ SysWOW64

As mentioned earlier, there are some 32-bit programs that only work in a 32-bit environment. And since the directory for these is C:WindowsSysWOW64, you will have sầu to lớn tell the command prompt to lớn look for it here, and not in the usual system32. 

To vị so, simply type in the following command:

cd c:windowsSysWOW64


Doing this will change the directory in which the command prompt looks for your 32-bit executable. 

Fix: Pydong dỏng is not recognized as an internal or external command

If you’re getting the same error when running Pythanh mảnh through the commvà prompt, it is highly likely that Python’s executable tệp tin is missing from the environment variables. 

To fix this issue, all one needs lớn vị is to lớn find where Pythanh mảnh is installed & add the path of the executable Pydong dỏng tệp tin khổng lồ the “Path” variable in Environment Variables (as shown before). 


You will be able lớn run Pybé from the commvà prompt.

Fix: Pyhẹp command opening Microsoft Store

On Windows 10, many have also found that sometimes, after adding Python’s path to lớn the environment variables và running “pybé nhỏ.exe” in the comm& prompt, a new problem comes up. Instead of opening pykhiêm tốn.exe directly, they are taken lớn the Microsoft Store. 

This is because Microsft embeds a couple of ‘fake’ executables in the folder và puts their phầm mềm executable aliases in the On position. To fix this, simply search for và open “Manage app execution aliases” from the Start Menu. Then turn Off pynhỏ nhắn.exe cộ & python3.exe pháo.


You should be able lớn run python thả.exe pháo from the command prompt now without being redirected lớn where you don’t want khổng lồ go. 

Android Studio: is not recognized as an internal or external command

Android Studio has its own terminal command for executing commands. And the same error is encountered here when trying to lớn run the ‘adb’ comm&.

The cause of the problem here tends lớn be the incorrect path khổng lồ the adb folder. But it can be solved with ease if you know where the adb.exe file is located. 

By mặc định, the adb is located in the following folder:

C:Users(username)AppDataLocalAndroidSdkplatform-toolsSo, all one needs to lớn vì is khổng lồ open Android Studio, cliông chồng on File>Settings. In the next window, under Tools, click on Terminal. Then enter the complete location to adb in the Start Directory.


Restart Android Studio & your adb commvà should exeđáng yêu now.

Alternatively, you can change the directory in Android Studio’s terminal itself. Simply type in the following command:

cd C:Users(username)AppDataLocalAndroidSdkplatform-tools


Now, you should be able to run adb from Android Studio’s terminal commvà. 

CMD: Fastboot or ADB is not recognized as an internal or external command

Lastly, if you have sầu downloaded Fastboot và are not able to lớn exexinh đẹp the adb command from cmd, then it means you have lớn mix the path lớn ADB in System Variables (in Environment Variables). 

mở cửa Windows Environment Variables (as shown earlier), under “System Variables”, select Path and click “Edit”. Then add the full path to where the platform-tools thư mục is located (which contains adb.exe). Apply the changes.


Restart the comm& prompt, and you should be able lớn exedễ thương the adb command.


Entering the right commands in the interface và ensuring that the latter has access khổng lồ the executable tệp tin is all that it takes for the command prompt to lớn run the program/file/application that you have sầu commanded it khổng lồ. So make sure you follow the fixes mentioned herein and run your commands without any more errors.