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.

  • Download DriverFix (verified download file).

  • Click Start Scan to find all problematic drivers.

  • Click Update Drivers to get new versions and avoid system malfunctionings.

  • DriverFix has been downloaded by 0 readers this month.

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

  • In the Windows search box type environment and click on the first result(Edit the system environment variables).
  • On the Advanced tab, in the bottom right, click on Environment variables…
  • Under System variables, in the list, locate Path and click on it. Then click Edit.
  • Optional step: copy all the paths there and put them in a notepad for safekeeping, just in case something goes wrong.
  • 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.
  • Click on New and type the directory path of the program you’re trying to access (for example C: >Windows >System32).
  • 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

  • In the Windows search box type environment and click on the first result(Edit the system environment variables).
  • On the Advanced tab, in the bottom right, click on Environment variables…
  • Under System variables, in the list, locate PATHEXT and click on it. The click Edit.
  • 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.
  • Check the file extension of the program you’re trying to access and then add it to the PATHEXT list of default extensions.
  • 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:

  • The system could not find the environment option that was entered
  • This installation package could not be opened on Windows 10 [FIX]
  • The system cannot find the file specified error on Windows 10 [FIX]

If the advices above haven’t solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

Still having issues? Fix them with this tool:

SPONSORED

  • windows 10 fixWindows Environment Variables

Email *

Commenting as . Not you?

Comment