The System Cannot Find the File Specified – 0x80070002 – How To Fix
“The system cannot find the file specified” is one of the most seen error messages on Windows operating systems. While frequently seen on previous versions, this error message is especially common for Windows 10.
The most common error code associated with this message is 0x80070002. Of course, the code may vary depending on the type of the failure, OS specs, and other circumstances.
Luckily, there are many solutions to this problem. Read on to find out how to deal with the “The system cannot find the file specified” error message.
What Causes the Error
First, let’s look into some of the most prominent causes of this error. Typical causes include abnormal registry keys, connection problems, system partition being offline, corrupted or missing system files, corrupted or missing software files, bad file permission settings, disk errors, missing driver files, and many more.
Scan Your PC with Antivirus Software
A virus or another threat, such as malware or cyberattack, might be the cause of this error. In order to check for that, run an antivirus scan. If any corrupted files, malicious content, or junk files appear, clean them. On the other hand, if the scan doesn’t find the cause of the problem, you should try the next method.
Check the System Log Files
Once you’re sure that your computer is clean and has no viruses or other malicious files, you can proceed with checking the system log files to find the driver file that’s causing the problem. Here’s how to do it.
Double-click on “My Computer”.
Open the system partition (usually “C”).
Double-click on the “Windows” folder.
Double-click on the “inf” folder.
Browse for the “setupapi.dev” or “setupapi.dev.log” file. Open it with a double click.
Press “CTRL” + “F” keys simultaneously.
Once the “Find” box opens, search for “cannot find the file” and click the “Find Next” button.
When the missing file is located, copy and paste it to the “inf” folder.
Reinstall the driver.
Restart your PC.
Install the Driver via .inf File
If the error persists after you have downloaded and installed the drivers from the manufacturer’s site, you can try installing them via the .inf file. Here’s how it works.
Browse your computer for the driver file.
Extract the file. You can use any compression/extraction program you have installed.
Locate the “.inf” file in the extracted folder. If there are multiple .inf files, look for the one with the “Type” set to “Setup Information”.
Right-click on the file and pick the “Install” option from the drop-down menu.
The file should install itself without a problem. However, not every .inf file can be installed this way. If that’s the case, you will see an error message informing you that the file you selected doesn’t support that type of installation. Should that happen, try the next method.
Uninstall/Reinstall the Driver
Uninstalling and reinstalling the driver again might do the trick if the previous method failed. To do that, follow the steps explained below.
Press the “Win” key to open the “Start” menu.
Search for “Device Manager” in the search box.
Click on the “Device Manager” link in the results list.
Once Device Manager opens, expand the category of the device you want to uninstall.
Locate the device and right-click on it.
Choose the “Uninstall” option from the drop-down menu.
Confirm your choice by clicking the “OK” button.
Install the driver once more.
Restart your PC and check if the problem persists.
Try Changing Your Registry
Some users have solved this issue by changing the registry keys on their computers. To do that, follow the steps outlined below.
Press the “Win” and “R” keys at the same time to launch the “Run” box.
Once the box appears, write “regedit” into the text field and press “Enter”.
You should backup your registry, so you can restore it, should something go wrong. Click the “File” tab and click “Export…”. Under the “Export Range” section, pick “All”. Click “Save” to save your registry backup.
With the backup out of the way, use the left-side pane of the Registry Editor window to go to this location: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersion.
Find the “RunOnce” key. If it doesn’t exist, create it by right-clicking “CurrentVersion” and picking “New” then “Key” from the drop-down menu. Make sure to name the new key “RunOnce”.
Go to “HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersion in the left-side pane and check whether the “RunOnce” key is there. If negative, create it once more.
Close the Registry Editor and reboot the computer.
The pesky “The system cannot find the file specified” error is, quite certainly, a nuisance but it can be solved rather quickly with the methods described in this article. Of course, if you do not feel comfortable tinkering with drivers and registries, you should bring your PC to a professional.