12 Ways to Fix “The System Cannot Find the File Specified” Error

By Grishm Devkota Grishm Devkota Grishm holds a computer science degree and is currently employed as a Tech writer at TechNewsToday. He specializes in topics related to Windows OS, iOS and PC hardware. You can. Full Bio

Learn about our editorial policies Updated October 22, 2022

12 Ways to Fix “The System Cannot Find the File Specified” Error

The System Cannot Find the File Specified is an error that can appear when the file, you or the program you’re using is trying to access, is either corrupt or missing.

Some quick fixes for the error is to check if the files you’re trying to access exist in the device or not. Checking the permission of the files and folders and simply restarting your device can also help solve the issue.

What Causes The System Cannot Find the File Specified

This is one of the more common errors that users can encounter while using Windows as there are a lot of scenarios in which the issue can appear. The following reasons may cause the specified error

How to Solve “The System Cannot Find the File Specified” Error?

This is an error that can occur in multiple scenarios and use cases while the system is trying to access specific files during operation and fails to locate or retrieve them. The cannot find file specified error can appear on following circumstances:

Issues during Windows update, like error 0x80070002, corrupt system files due to storage issues, damaged application files and malfunctioning device drivers can cause the “Cannot find the file specified” error to appear.

Here in this article, are the solutions listed for the error “The System Cannot Find the File Specified” . If the error is appearing because of or during the above mentioned causes, you can perform the following fixes.

Perform a SFC and DISM Scan

First, we’ll try and find if the issue is because of a corrupt or missing system file. A SFC (System File Checker) scans, fixes and restores corrupt and missing files of the operating system whereas a DISM scan is used to restore the corrupt Windows image file. To perform a DISM and SFC scan

  1. Press the Windows key + R to open Run
    run-command-prompt
  2. Type cmd and press the Ctrl + Shift + Enter keys together to open command prompt with elevated access
  3. On the console, type dism.exe /Online /Cleanup-image /Restorehealth to run the image repair scan
    sfcdism
  4. Now, type sfc /scannow to start the SFC scan and wait until the process completes
  5. After the scan, if the corrupted files are fixed, restart your device otherwise delete and reinstall the corrupt or missing files.

CHKDSK Scan

If the error appears while trying to access any file or folder in a particular storage device, perform CHKDSK (Check Disk) command. This scans the storage device for any file errors or bad sectors and attempts to fix them.

chkdsk-scan

  1. Open Run by pressing Windows key + R
  2. Type cmd and press Ctrl + Shift + Enter keys together to open command prompt with elevated access
  3. In the console, type chkdsk : /f /r to scan the storage to fix any bad sectors and repair any corrupt files [eg: chkdsk E: /f /r]
  4. If the drive is not specified, the command will scan the directory it currently is in
  5. After the scan completes, restart your device and check if the error still appears

Update Windows

If the system scan cannot restore or fix the necessary files, a Windows update usually resolves the issue by repairing and restoring any missing files from your device. To update Windows

  1. Open Settings by pressing the Windows key + I and click on the Windows update tab on left
  2. If an update is available, click on the Download & Install option
    windows-update-1
  3. If any updates are not available, click on the Check for updates button
  4. Additionally, you can also look for updates in the Optional updates section by selecting Advanced Options
    optional-udaptes
  5. After the update completes, check if the issue is solved

Microsoft Update Troubleshooter

If the error appears because of a Windows update, trying to find and fix the problem from the Windows troubleshooter usually helps solve the issue. If not, it will suggest solutions that may be the probable cause for the error to appear. To run the update troubleshooter:

  1. Open Settings
  2. From the System tab, scroll down and click on Troubleshoot
    update-troubleshooter-1024x601
  3. Click on Other Troubleshooters
    system-troubleshoot
  4. Click on the Run button on Windows Update
    run-windows-troubleshoooter
  5. Let the process complete and perform fixes as suggested

Delete Software Distribution Folder

Sometimes due to corrupt files in the SoftwareDistribution folder, Windows update can fail to install in the device causing the error to appear. To solve this, you will need to remove the update files and the old Windows image file by deleting the SoftwareDistribution folder.

Firstly, you will also need to disable some Windows update components and delete the catroot2 folder. To perform these steps,

  1. Press the Windows key + E to open the File Explorer
  2. Now, navigate to C:\Windows\SoftwareDistribution and delete the folder
    software-distribution
  3. Again, search C:\Windows\SoftwareDistribution.old and delete/rename the folder if present.
    software-distribution-old
  4. Restart your device and check if the error appears again while trying to update Windows.
  5. Similarly, navigate to C:/windows/system32 and delete the catroot2 folder also.

Repair/Reinstall the Application

Note: This method is applicable for supported applications only

If Windows update is not the issue and the error code is appearing while launching applications, repairing the application from Settings and if that does not work, resetting them may help solve the problem.

To repair the installed application,

  1. Open Settings and click on the Apps tab
  2. Select Apps & features and in the App list section, search for the application you wish to repair
    apps-tab-settings-1024x577
  3. After locating the application, click on the vertical dotted menu of the application and select Advanced options
    app-list
  4. Scroll down and in the Reset section, select Repair to start the process.
    reset-repair-apps
  5. Let the process complete and then launch the application again
  6. If repairing does not work, Reset the application to restore its functionality
  7. Press on the confirmation popup again to proceed

Note: Make a backup of any important files and data before uninstalling.

In some instances, if the repair and reset options do not work, then uninstalling or forcefully removing and then reinstalling the application may fix the issue. To uninstall the application in your device

uninstall-apps

  1. Open Settings and click on the Apps tab
  2. Click on Apps & Features and scroll down or search for the application you wish to uninstall
  3. Click on the dotted menu and select Uninstall from the drop down menu
  4. You can also uninstall the application from the application interface itself or the uninstaller that is included in the application folder
  5. After uninstalling the application, reinstall it and check if the error still persists.

Check System Log

Sometimes, the error may appear because of corrupted or malfunctioning device drivers. To fix the error, check the system log and verify if the drivers are missing or absent. After verifying, installing the missing drivers again may help solve the issue. To do this:

setupapi-file-explorer

  1. Open file explorer and navigate to C:/Windows/inf directory
  2. In the directory, search for setupapi.dev or setupapi.dev.log file and open it
  3. Now, open the search tool by pressing Ctrl key + F and type cannot find the file. Press the Enter key
  4. After finding the missing file/s, copy and paste them on the address bar of the INF folder to navigate there
  5. After confirming that the drivers are missing, reinstall them and reboot the system

Update Device Drivers

Corrupt or malfunctioning drivers may cause the error to appear. In these cases, updating the device drivers can help solve the The System Cannot Find the File Specified error. To update the device drivers

  1. Open Run and type devmgmt.msc to open Device Manager
  2. Search for the corrupt driver. Sometimes the drivers have a yellow sign beside it to denote errors or corruption
  3. Right click on the driver and click on Update driver
    update-drivers
  4. On the next prompt select Search automatically for drivers and let the process finish
    update-driver-confirmation
  5. Restart your device and check if the error still appears in the device

Turn Off Controlled Folder Access

Some users have reported that while installing device drivers or accessing sensitive files, ransomware protection and controlled folder access are causing the error to appear. Both of these settings are part of Windows Security that may be causing conflict or false errors. To disable the settings

  1. Open Run, type windowsdefender: in the dialogue box and press the Enter key
    defender-run
  2. Now, click on Virus and Threat tab and scroll down to Ransomware protection
    windows-security-1
  3. Click on Manage ransomware protection and toggle the Controlled folder access to Off
    controlled-folder-access
  4. Try reinstalling the device drivers or accessing the files and see if the error still appears

Partition Storage Drive

Another method for this error to fix is to format and partition the disk again. Make note that the files in the storage will be removed during the process. Therefore, make a backup of it before proceeding. To remove the files and partition the drives again

  1. Open command prompt with elevated access
  2. Now, on the console, to enter the disk partition and list the available volumes in your disk, type
    diskpart and press the Enter key
    diskpart-1
    list disk and press the Enter key
    Make sure that the disk shown here is properly connected and healthy. If not, power off the device and check for connections.
  3. If the device is shown, proceed to select the disk and firstly clean it to create a partition. Now, enter the commands
    select disk and press the Enter key
    [eg: select disk 0]
    clean-disk
    clean and press the Enter key
  4. Now, type
    create partition primary and press the Enter key
  5. After creating the partition, format the disk and name it
    format fs=ntfs label=drive name and press the Enter key
    [eg: format fs=ntfs label= Applications]
    create-partition
  6. Wait until the process completes and see if the error appears

System Restore

Note: Make sure that all programs are closed and any unsaved work is saved before proceeding. The process cannot be interrupted and any attempt may corrupt system files. Connect a charger if performing on a laptop.

A system restore reverts the recent alterations made to the system to a previous stable state by undoing changes made by the user. To perform a system restore firstly make sure that your device has the restore option enabled and a previous snapshot of the operating system.

  1. Open Run and type rstrui.exe to open the System Restore Window
  2. Select the type of restore you want to perform and then click on Next
    system-restore
  3. If you selected the Choose a different restore point option, select the restore point from the list
    custom-restore-point
  4. After selecting and clicking on Next, click on Finish to proceed with the restore
    finish-restore-setup
  5. On the confirmation, press Yes to continue with the operation. Your device will restart during the process.

Reset Device

Note: This method removes all the installed programs and reinstalls Windows on your device. Backing up files, folders as well as any necessary data in an external storage while connected to a charger (laptops and portable devices) is highly recommended.

The final solution for this error appearing is to reset your device entirely. This process reinstalls Windows and removes all installed applications and programs. You can either choose to keep your personal files and folders or remove them entirely. To reset your device:

  1. Open the Windows Advanced boot options by holding the Shift key and clicking on the Restart button from the power menu
  2. In the boot menu, Select Troubleshoot
    advance-boot
  3. Now, click on Reset this PC
    uefi3
  4. Now, choose if you want to keep your files or remove them
    reset-type-select
  5. Follow the onscreen prompts and wait until the process finishes and boots you to a login screen