Are you currently seeing a “the system cannot find the specified path” error on your Windows computer?
However, it can also mean that there are registry issues in your system such as invalid keys or worse virus attack. That’s why if you see this error, don’t take it lightly. Here are six fixes you can make to resolve this problem immediately.
1. Check your system for viruses
Virus attacks may not be the most common reason why you see the “the system cannot find the path specified” error. But it is better to check your system for viruses before proceeding with further fixes. This ensures that your computer is safe and free from threats before you start changing system settings.
If a third-party antivirus program is installed on your computer, you can run it to check for threats. However, if you don’t have one, you can use your program’s built-in antivirus program called Windows Defender. Here’s how:
- Press and hold To earn + I keys to open Settings.
- Then click Security and update > Windows Security.
- Then press Protection against viruses and threats.
- Finally, click on Quick scan.
The scan may take some time if you have a lot of files saved on your computer. Once it’s done and no threats are found, move on to the next fixes. If it found any threats, quarantine the files and check if it fixed the problem.
2. Check the file path
If you received this error message on the command prompt, check if you are typing the correct path or not. Most of the time it is human error where users insert the wrong path or name on the command line. So run your command again and make sure the path is entered correctly.
If you are getting this error when trying to download files on your system, check if your default download folder is changed and make sure that the download location you have exists in your system.
3. Remove all invalid paths in environment variable
An environment variable contains data that can affect the behavior of processes running on your system. So, if you run a program on your computer from the command line, the PATH environment variables play a vital role in recording the directory path that can be searched.
To understand how this works, imagine a computer with two different directories. If you try to run a program currently in a different directory, your system will look for the directories saved in the PATH variable. If the program is available in any directory, your system can run it without problems.
However, if you put an invalid path variable, the process will be terminated, causing the error “the system cannot find the path specified”. So, the best way to fix this problem is to remove invalid paths from the environment variable.
Follow the instructions below to delete the paths:
- On your computer, open File Explorer.
- Then search This PC path in the left navigation, right click on it and choose Properties.
- In the new window, click the Advanced System Settings link in the right section.
- In the Advanced tab of the System Properties window, click the Environment variables button.
- In the User Variables section, check the box Path variable by clicking on it and pressing the Edit button. This will display all user variables.
- Then check if the paths are correct and working. To do this, simply copy the path and paste it into the File Explorer address bar. This will allow you to see if File Explorer can find the path. If you can’t find it, the path is incorrect and you need to Remove Where Edit this. Do this on all paths provided in the path variable. When finished, press Okay.
- Then, under the System Variables section, click on the Path variable and press the Edit button.
- Repeat step six to check if all paths work.
You can all view all path variables in command prompt. just type echo %PATH% and press Enter. However, it won’t tell you if the path is invalid or not.
4. Check your system registry
If you have changed the autorun keys in the registry editor, this may be the reason why you are getting a “the system cannot find the path specified” error. AutoRun keys work by executing a command automatically when opened. If the information specified in the keys is incorrect, errors may occur. Follow the instructions below to resolve this issue.
- Press and hold Win + R keys to open Run. Then type Regedit and press Enter.
- In Registry Editor, copy this text
Processor HKEY_LOCAL_MACHINESoftwareMicrosoftCommand and paste it into the address bar.
- Then check if there is an AutoRun key. If there is, Remove Where To modify the data.
- Finally, check if you are still facing the same issue.
5. Run an SFC scan
If none of the above methods work, you can run a System File Checker (SFC) scan to find corrupt files in your system and fix them automatically. Here’s how:
- Press and hold Win + R keys to open Run. Then type ordered and press Enter.
- On the command prompt, type sfc/scannow and press Enter.
- If SFC finds errors but cannot fix them, type this command after exe /Online /Cleanup-image /Scanhealth and press Enter.
- Then type exe /Online /Cleanup-image /Restorehealth and knock Enter.
- Restart your computer and see if that fixes the problem.
6. Update your copy of Windows
The last thing you need to do to fix this error is to update your Windows system. Running an outdated system can lead to various issues on your system, including the “the system cannot find the path specified” error. Follow the steps below to upgrade your Windows:
- Open the Settings app on your system by long pressing the Windows + I keys.
- In Settings, go to Update and security > Windows Update.
- Then click on the Check for updates if there are updates, download and install them.
- Restart your PC and check if you still encounter the same error.
An error-free Windows once again
Most of the time, “the system cannot find the path specified” error is often caused by an invalid path or corrupted files in your system. After performing the above mentioned fixes, your system should work fine without errors. If you’re trying to run a program and you get this error, finding the correct software installation location can help resolve the issue.
Need to find the location of a program in Windows? Luckily, it’s really easy to do once you learn how.
About the Author