A request is not recognized as an internal or external command [SOLVED]

Vlad Turiceanu
by Vlad Turiceanu
Editor-in-Chief
0 Comments
Download PDF
Affiliate Disclosure

A request is not recognized as an internal or external command

The Windows OS is keeping a list of paths to the location of the most accessed programs called Windows Environment Variables and it can access them easily. Sometimes, this list gets corrupted or messed up and that’s when a request is not recognized as an internal or external command, operable program or batch file.

Before anything else, look in the System32 folder to see if the program you’re trying to access exists. If it’s there and you can’t run it, then go to the solutions.

How do I solve Windows Environment Variables errors?

Solution 1 – Set the path in Windows Environment Variables

  1. In the Windows search box type environment and click on the first result(Edit the system environment variables).open system environment variables A request is not recognized as an internal or external command windows 10
  2. On the Advanced tab, in the bottom right, click on Environment variables… Environment Variables A request is not recognized as an internal or external command
  3. Under System variables, in the list, locate Path and click on it. Then click Edit.
  4. Optional step: copy all the paths there and put them in a notepad for safekeeping, just in case something goes wrong.
  5. Now check to see if the directory path of the program you’re trying to access is there. If it’s not, you’ll have to add it.
  6. Click on New and type the directory path of the program you’re trying to access (for example C: >Windows >System32).
  7. Click OK on all windows and then restart your PC.

After the restart, if you added the directory path properly, everything should work fine. Keep in mind that you can add new directory paths but you can also edit the old ones that are no longer valid.


We’ve written extensively about adding and editing the path for variables before. Bookmark this page in case you need it later. 


Solution 2 – Set the value of PATHEXT Environment Variable

  1. In the Windows search box type environment and click on the first result(Edit the system environment variables). open system variables A request is not recognized as an internal or external command
  2. On the Advanced tab, in the bottom right, click on Environment variables… choose environment variables A request is not recognized as an internal or external command
  3. Under System variables, in the list, locate PATHEXT and click on it. The click Edit.
  4. Under Variable value, you can add or delete a new extension manually. You also have the options to Browse Directory… or Browse File… to add new extensions. edit system variable hot to solve windows environment errors
  5. Check the file extension of the program you’re trying to access and then add it to the PATHEXT list of default extensions.
  6. Click OK on all windows and then restart your PC.

After you set the correct values of the environment variables, everything should work fine and you’ll be able to access your programs on Windows 10 without any problems.

If you have any more questions, feel free to reach for the comments section below.

RELATED STORIES YOU SHOULD CHECK OUT:

Was this page helpful?
Thanks for letting us know! You can also help us by leaving a review on MyWOT or Trustpillot.
Get the most from your tech with our daily tips
Tell us why!