How to Fix the Windows Cannot Find File Error

Fix the Windows cannot find file error by checking the file’s location, replacing broken shortcuts, and repairing the affected app.

Contents

Don't Miss the Good Stuff

Get tech news that matters delivered to your inbox.

Fix the Windows cannot find file error by locating the actual file, correcting the path or shortcut that opens it, and repairing the affected app if its files are missing. Start with the filename shown in the error so you can choose the relevant fix. These steps use Windows 11 menus.

The short version

  • Check the location: Find the file in File Explorer and compare its actual path with the error.
  • Replace broken shortcuts: Create a new desktop shortcut when the application is still installed.
  • Match the trigger: Address startup entries, deleted files, or damaged applications based on when the message appears.
  • Save system repairs for later: DISM and System File Checker repair Windows components, not missing personal documents.

FixWhen to use it
Search for the actual fileThe file moved or its recorded location is outdated
Show extensions and hidden filesYou need to check the complete filename
Correct command pathsA command uses the wrong location or lacks quotation marks
Replace the desktop shortcutAn installed app has an obsolete shortcut
Reconnect startup app storageA startup path points to disconnected storage
Disable startup through SettingsAn unwanted or removed app causes an error at sign-in
Disable startup through Task ManagerYou want an alternative startup control
Inspect startup-folder shortcutsA startup-folder entry points to a missing app
Restore from Recycle BinA deleted local file remains in the bin
Search OneDriveA cloud file is missing from its expected location
Restore from OneDrive’s recycle binA deleted cloud file remains recoverable
Download online-only contentYou need a OneDrive file while offline
Restore from File HistoryAn existing backup contains the missing file
Change the default applicationThe document exists but its opening app is incorrect or missing
Restart WindowsAn installation, update, or removal is incomplete
Repair through SettingsThe affected app offers a repair option
Repair through Control PanelA desktop program supports installer repair
Reset the affected appRepair fails or is unavailable and the app offers reset
Update Windows and Store appsAn installation defect or fixed software bug affects the app
Reinstall a missing applicationThe required application was removed
Restore a quarantined fileDefender quarantined a file you have established is safe
Scan for malwareMalware may have damaged files or created broken launch entries
Run DISM and System File CheckerWindows components or protected system files are damaged
Supply a separate DISM sourceWindows Update cannot supply repair files
Get help with manual system-file replacementSFC cannot repair a damaged system file
Use System RestoreA suitable restore point predates the system change
Reinstall through Windows UpdateSystem damage persists and the repair option is available
Repair with installation mediaCompatible media offers preservation of files and apps

Find the file and check its full path

Open File Explorer, select This PC, and enter the missing filename in Search This PC. Open the result from its actual location. Compare its location and spelling with the path in the error, since an old shortcut or recent-file entry may point somewhere else.

Open File Explorer on Windows.
Click to expand
Open File Explorer on Windows.

To see the complete filename, press Windows + E, then select View > Show > File name extensions. Select Hidden items in the same menu if you also need to reveal hidden files. Check both the filename and its containing folder before trying again.

If the message comes from a command you entered in Command Prompt, use the executable’s actual full path. Put double quotation marks around a path containing spaces. Replace this example with the installed application’s real location before running it:

"C:\Program Files\Example\Example.exe"

Replace an outdated desktop shortcut

When an application remains installed but its desktop shortcut points to an obsolete location, create a fresh shortcut. Select Start > All, find the application, and drag it to the desktop. Open the new shortcut to check that it launches the app.

Select Start to open the Windows Start menu.
Click to expand
Select Start to open the Windows Start menu.

If the new shortcut also fails, continue with the application repair options below. A new shortcut addresses an outdated launch path; a damaged installation needs repair.

Stop a missing app from launching at startup

An error at sign-in can come from an application still configured to launch after it was removed or its storage was disconnected. Open Settings > Apps > Startup. For an entry reporting a missing app, select the information icon beside its toggle to inspect the recorded path.

If the path points to disconnected removable or network storage, reconnect that storage and try again. If the application was removed and you still need it, reinstall it from its official publisher or Microsoft Store.

For an unwanted or removed app, stop apps from opening on startup by setting the responsible application’s toggle to Off. Alternatively, right-click Start, select Task Manager, and open Startup apps. Select the affected entry, then select Disable.

Inspect startup-folder shortcuts when the missing application launches from one of those folders. Right-click Start, select Run, and enter this command for the current account:

shell:startup

Inspect the shortcuts for the application named in the error. Removing an obsolete shortcut removes that startup launch entry. Remove only the obsolete shortcut, or replace it with one pointing to the installed application.

Recover a missing document or cloud file

For a deleted local file, open Recycle Bin and select the missing file or folder. Right-click it and select Restore. Windows returns it to its original folder, so try opening it there.

A file deleted from OneDrive cloud storage may need recovery through OneDrive rather than the local Recycle Bin. Sign in at OneDrive with the account that owns the file and use Search everything. Try alternate names or descriptions, check Personal Vault, and check another personal or work account if the file may belong there.

To recover a deleted OneDrive item, open Recycle bin on the website, select the circular checkbox beside its filename, and select Restore. Select Show Personal Vault items when recovering a file from Personal Vault. Personal accounts normally retain deleted items for 30 days; work or school accounts normally retain them for 93 days unless the administrator changes retention. Permanently deleted items cannot be restored this way.

For an online-only file managed through OneDrive Files On-Demand, connect to the internet and sign in to OneDrive. Right-click the file or folder in File Explorer and select Always keep on this device. Wait for downloading to finish before opening it offline. This downloads available cloud content; it does not recover a file deleted from the cloud.

If you already have a File History backup of the affected location, right-click the folder that contained the missing file and select Restore previous versions. Choose a suitable version, then select Open > Open in File History to inspect it. Expand Restore and select Restore to... to recover the content elsewhere without replacing current content.

Repair the application that opens the file

When the document exists but its registered opening application is missing or incorrect, change the file association. Open Settings > Apps > Default apps and search for the affected extension, such as .pdf. Select the result and choose an installed application that can open it.

If the failure followed an incomplete installation, update, or removal, save your work and restart your Windows computer. Select Start > Power > Restart, then retry the affected application or installation. Continue with repair if the error remains.

To repair an app, open Start > Settings > Apps > Installed apps. Beside the affected app, select More > Advanced options > Repair. Not every app offers this option, so use the desktop-program route if its installer supports repair.

For that route, open Control Panel > Programs > Programs and Features. Right-click the program and select Repair, or select Change if Repair is unavailable. Complete the publisher’s repair wizard.

If repair fails or is unavailable, you can reset an app that offers the option. Resetting can remove the app’s local data and settings. Open Settings > Apps > Installed apps, select the app’s More > Advanced options > Reset, and review its data-loss notice before proceeding.

For app failures involving installation defects or fixed software bugs, check for updates. Open Start > Settings > Windows Update > Check for updates, then select Install now when offered. For Store apps, open Microsoft Store > Library > Get updates.

If a needed Store application is missing, sign in with the Microsoft account associated with it. Open Microsoft Store > Library, find the application, and select Install. Obtain other missing applications from their official publishers.

Check quarantine and scan for malware

If you use Microsoft Defender Antivirus, quarantine can explain why a previously present file is missing. Only after establishing that the file is safe, open Windows Security > Virus & threat protection > Protection history. Find the quarantined item matching the missing file and select Restore. On a managed device, you may need IT assistance.

To check for malware that damages files or creates broken launch entries, open Windows Security > Virus & threat protection > Scan options. Choose Full scan and select Scan now. Removing malware may still leave an obsolete shortcut or startup entry, so address that entry separately if the message continues.

Repair damaged Windows system files

Use DISM and System File Checker when the problem involves Windows components or protected system files. These tools do not recover missing personal documents or arbitrary third-party application files. To repair Windows using Command Prompt, run DISM before System File Checker.

Search for Command Prompt and select Run as administrator. Run this command first and wait for it to complete successfully:

DISM.exe /Online /Cleanup-image /Restorehealth

After DISM completes successfully, run System File Checker with the following command. Wait until verification reaches 100%:

sfc /scannow

If Windows Update cannot supply the repair files, an administrator can use a separate Windows repair source. Check its compatibility and replace the example source path with the suitable source before running this command:

DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess

After that repair, run sfc /scannow again. If SFC still cannot repair a system file, get technical assistance with identifying the failed file and manually replacing it with a verified good copy from the same Windows version.

Undo a recent system change

Use System Restore when a recent system change caused the error and a suitable earlier restore point exists. It returns system configuration and installed-program state to the selected point, changing programs and configuration affected since then. Press Windows + R and enter this command:

rstrui.exe

Press Enter, select Next, and choose an earlier restore point. Select Scan for affected programs to review the programs affected by the restoration. To proceed, select Next > Finish.

If system damage persists, eligible Windows 11 installations offer a Windows reinstall that preserves apps and files. Open Start > Settings > System > Recovery, then under Fix problems using Windows Update, select Reinstall now. Select OK, keep power and internet connected, and restart when installation finishes.

The reinstall option can be unavailable on older builds or devices managed through organizational update policies. Another route is compatible Windows installation media that matches your licensed edition and offers Keep personal files and apps. Back up important data before proceeding with a reinstall.

While signed in to Windows, open the installation media in File Explorer and run setup.exe. Select Yes, then select Change what to keep > Keep personal files and apps > Next > Install. Use this preservation route only when the compatible media offers that option.

Frequently Asked Questions

Will showing hidden files bring back a deleted file?

Showing hidden files only reveals content that is already present; it does not restore deleted content. Enabling File History after a deletion also does not recreate a missing backup.

Can Windows File Recovery help if the file is gone from the Recycle Bin?

Windows File Recovery can attempt recovery from local storage, including internal and external drives, but recovery is not guaranteed. Minimize writes to the source drive and use a separate destination drive. Cloud storage and network shares are unsupported.

What should you do when the missing executable belongs to Office?

For supported Microsoft 365 or Office installations on Windows 11, right-click Start, select Installed apps, find Microsoft 365 or Office, and select its ellipsis menu followed by Modify. For Click-to-Run installations, choose Quick Repair or Online Repair, then select Repair. Microsoft describes Online Repair as the more comprehensive option.

Should you change File Explorer to open This PC?

Only if you would rather have File Explorer open to This PC instead of Home; the setting changes where File Explorer opens and is not a documented fix for this error. Open File Explorer, select See more > Options, then under Open File Explorer to, select This PC and select Apply.

Will System Restore recover a deleted personal document?

System Restore does not recover deleted personal documents. It restores system configuration and installed-program state, so use file recovery options when the document itself is missing.

Share