FIXED: The System Cannot Find the File Specified in Windows

“The system cannot find the file specified” means Windows or an app asked for a file that is not available at the expected location. Microsoft maps this message to ERROR_FILE_NOT_FOUND, system error code 2; “The system cannot find the path specified” is a separate code 3.

Start with the exact path named in the error, then work through the fixes below from least disruptive to most disruptive. Avoid downloading random DLLs or editing the Registry just because a generic guide suggests it. Microsoft’s system error code reference confirms what the message actually means.

1. Check the missing file or path first

If the dialog shows a path, open File Explorer and browse to that location. Confirm that the drive letter, folder names, filename, and extension are correct. If you moved or renamed the file, update the shortcut, script, scheduled task, project, or app setting that still points to the old location.

File Explorer showing The system cannot find the file specified for a document path
Verify the exact path in the error before changing Windows settings.

2. Repair or reinstall the app that triggers the error

If the message appears only when one program starts, the program may be missing one of its own files. In Settings > Apps > Installed apps, use Repair, Reset, or Modify when the app provides that option. Otherwise uninstall it, restart Windows, and reinstall the latest version from the developer’s official site or Microsoft Store.

Also check your security software’s quarantine or protection history. Restore a quarantined file only when you are certain it belongs to trusted software.

Windows Installed apps page with repair and modify controls for an application
Use an app’s supported repair option before reinstalling it.

3. Repair Windows with DISM and SFC

If several Windows features or apps fail with missing-file errors, repair the Windows component store and protected system files. Open Command Prompt as administrator, then run these commands in order:

DISM.exe /Online /Cleanup-Image /RestoreHealth
sfc /scannow

Microsoft recommends running DISM before SFC. Let both commands finish; do not close the window while SFC is scanning. See Microsoft’s DISM and System File Checker instructions for the supported procedure.

Administrator Command Prompt running DISM RestoreHealth and SFC scannow
Run DISM first, then SFC, from an elevated Command Prompt.

4. Check the drive for file-system errors

If files repeatedly become inaccessible, or the error points to a local drive, run CHKDSK. In an elevated Command Prompt, use chkdsk C: /f, replacing C: with the affected volume. If the volume is in use, Windows may offer to schedule the check for the next restart.

The /f switch fixes file-system errors. Review Microsoft’s CHKDSK reference before using additional options.

Administrator Command Prompt scheduling CHKDSK for the next Windows restart
CHKDSK can schedule a system-volume repair for the next restart.

5. Scan for malware and review quarantined items

Malware can remove or alter files, while antivirus software can quarantine suspicious files. Open Windows Security > Virus & threat protection and run a scan. If you still suspect an infection, use the available full or Microsoft Defender Offline scan options. Check Protection history afterward, but do not restore an item merely to make the error disappear.

Windows Security Virus and threat protection scan options including quick full and offline scans
Use Windows Security when missing files may be related to malware or quarantine.

6. Rule out a background software conflict

If the problem started after installing a utility, security suite, backup tool, or shell extension, test a clean boot. Open msconfig, go to Services, select Hide all Microsoft services, and disable the remaining third-party services. Then open Task Manager from the Startup section and disable startup apps. Restart and test again.

If the error disappears, re-enable items in small groups until you identify the conflict. Follow Microsoft’s clean boot instructions; do not disable Microsoft services indiscriminately.

System Configuration Services tab with Hide all Microsoft services selected
A clean boot isolates third-party services without disabling core Microsoft services.

7. Fix a driver only when the error is device-related

If the message began after adding hardware or updating a driver, open Device Manager. Update the affected device, or uninstall the device and restart so Windows can detect it again. If a recent driver caused the problem and Roll Back Driver is available, use it.

Prefer Windows Update or the hardware manufacturer’s official support page for drivers. Microsoft also documents driver updates through Device Manager.

Windows Device Manager with Update driver and Uninstall device options for a display adapter
Update, roll back, or reinstall a driver only when the error follows a hardware change.

8. Use Windows Recovery as a last resort

If the error started after a recent system change and the earlier fixes fail, use System Restore if a suitable restore point exists. If Windows itself is badly damaged, Reset this PC can reinstall Windows; the Keep my files option preserves personal files but removes installed apps and settings. Back up important data first, and make sure you have your BitLocker recovery key if device encryption is enabled.

Microsoft’s Windows recovery options page recommends using less disruptive recovery methods before a reset.

Windows Settings System Recovery page with Reset this PC and Advanced startup options
Use System Restore or Reset this PC only after targeted repairs fail.

What you should not do for this error

Do not create Registry keys such as RunOnce without evidence that a specific application requires them. Do not disable networking services, format a partition, or replace Registry hives as generic fixes for error code 2. Those actions can create new problems while leaving the missing-file reference untouched.

If you are still using Windows 10, note that Microsoft ended standard Windows 10 support on October 14, 2025. Microsoft recommends moving to Windows 11 when the hardware supports it, or using an eligible Extended Security Updates option during the transition. See Microsoft’s Windows 10 end-of-support guidance.

Leave a Comment

How to Open a Linux Shell in a Folder on Windows 10

How to Open a Linux Shell in a Folder on Windows 10

Open a Linux shell in any Windows 10 folder with File Explorer, PowerShell, and WSL. Check the Linux path and fix common setup issues.

How to Fix Lines on a Monitor Screen in Windows 10

How to Fix Lines on a Monitor Screen in Windows 10

Use a screenshot test, cable and port checks, monitor diagnostics, display settings, and driver rollback to pinpoint lines on a Windows 10 monitor.

How to Add Two Extra Clocks on Windows 10

How to Add Two Extra Clocks on Windows 10

Show two other time zones beside your Windows 10 clock. Set up each additional clock, give it a clear label, and find it in the taskbar calendar.

How to Fix a Slow Context Menu in Windows 10

How to Fix a Slow Context Menu in Windows 10

Find the File Explorer extension that delays right-click menus in Windows 10, test it safely with ShellExView, and restore any menu features you still need.

How to Disable Power Management for Devices in Windows 10

How to Disable Power Management for Devices in Windows 10

Stop Windows 10 from powering down a specific network adapter or USB device with plan-level settings and Device Manager controls, plus tips to avoid excess battery drain.

How to Back Up a Windows 10 Product Key Safely

How to Back Up a Windows 10 Product Key Safely

Check whether Windows 10 uses a digital license or product key, find a firmware-stored OEM key, and save license details securely for a reinstall.

How to Identify a Process in Windows 10 Task Manager

How to Identify a Process in Windows 10 Task Manager

Identify a Windows 10 Task Manager process by checking its executable path, file properties, publisher, linked services, and a Microsoft Defender scan.

How to Create a List of All Items in a Folder on Windows 10

How to Create a List of All Items in a Folder on Windows 10

Create a searchable Windows 10 folder inventory with PowerShell. Save every file and subfolder path as plain text or export details to a sortable CSV.

How to Display Custom Text on Your Windows 10 Desktop

How to Display Custom Text on Your Windows 10 Desktop

Add a custom reminder, quote, or label to your Windows 10 desktop with a Rainmeter text skin. Create the INI file, load it, then adjust its font and position.

How to Use Bluetooth Swift Pair on Windows 10

How to Use Bluetooth Swift Pair on Windows 10

Use Bluetooth Swift Pair on Windows 10 to pair a compatible accessory from a notification, with setup steps and fixes when the prompt does not appear.