Windows Cannot Find File? Fixes That Work
In this article
- Why Does This Error Appear?
- How Windows Decides What to Open
- Fix 1: Check the Shortcut’s Target Path
- Fix 2: Clear Broken Startup Entries
- Fix 3: Repair File Associations
- Fix 4: Use the “Open With” Dialog
- Fix 5: Re-register Windows Apps (For Built-in Programs)
- Fix 6: Check for Malware
- When to Reinstall the Program
- Frequently Asked Questions
If you see a “Windows cannot find file” error, it usually means a shortcut, startup entry, or file association is pointing to a program or path that no longer exists. The fix is to locate the actual target, update the shortcut, or clear the broken registry entry — and most users can resolve it in a few minutes without reinstalling Windows.
Why Does This Error Appear?
Windows shows this message when it tries to open a file or run a program but the path stored in the system is invalid. Common triggers include:
- A shortcut on the desktop or Start menu points to a program that was moved or uninstalled.
- A startup entry (in Task Manager or the registry) references a deleted executable.
- A file association (like .txt or .pdf) is set to open with a program that no longer exists.
- Malware or a cleanup tool removed a necessary registry key.
- A command in the Run dialog (Win+R) is misspelled or the target is not in the system PATH.
The error can appear when you double-click a file, when you log into Windows, or when you open certain apps. The exact wording may vary: “Windows cannot find file ‘C:\Program Files\...’”, “Windows cannot find ‘make sure you typed the name correctly’”, or a similar message with a path or a command name.
How Windows Decides What to Open
When you double-click a file, Windows looks up the file extension in the registry under HKEY_CLASSES_ROOT. That key tells Windows which application is associated with that extension. If the associated program’s path is wrong or missing, you get the “cannot find file” error.
For shortcuts (.lnk files), Windows reads the target path stored inside the shortcut. If that target was moved or renamed, the shortcut breaks. For startup programs, Windows reads the Run registry keys or the Startup folder; if the program listed there is gone, the error can pop up at boot.
Understanding this helps you know where to look: the shortcut properties, the registry, or the file association settings.
Fix 1: Check the Shortcut’s Target Path
The most common cause is a broken shortcut. Right-click the shortcut and choose Properties. Look at the Target field. If the path is empty, wrong, or points to a file that does not exist, you need to correct it.
- Find the actual program file (usually a .exe) in its installation folder. For example, if the shortcut was for Chrome, look in
C:\Program Files\Google\Chrome\Application\chrome.exe. - If the program is uninstalled, you cannot fix the shortcut — you must reinstall the program or delete the shortcut.
- If the program exists, click Change Icon or simply type the correct path into the Target field, then click OK.
If the shortcut is on the Start menu, you can also right-click it and choose Open file location to see the actual .lnk file, then edit its properties.
Fix 2: Clear Broken Startup Entries
If the error appears every time you log in, a startup entry is likely the culprit. Open Task Manager (Ctrl+Shift+Esc), go to the Startup tab, and look for items with a status of “Disabled” or with an unknown publisher. Right-click the suspicious entry and choose Disable to stop it from loading at boot. If you want to remove it entirely, you can use Registry Editor:
- Press Win+R, type
regedit, and press Enter. - Navigate to
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runand also checkHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run. - Look for a value that points to a missing file. Right-click it and choose Delete.
Be careful: only delete entries you are sure are broken. Deleting a legitimate startup item can disable a needed program.
Fix 3: Repair File Associations
If the error happens when you open a specific file type (like .jpg or .docx), the file association is broken. To reset it:
- Open Settings → Apps → Default apps.
- Scroll down and click Choose default apps by file type.
- Find the extension (e.g., .txt) and click the current app, then select the correct program from the list.
If the correct program is not listed, click Look for an app in the Microsoft Store or browse to the .exe manually. For some built-in types, you can also use the classic Control Panel → Default Programs → Set Associations.
Fix 4: Use the “Open With” Dialog
If you only need to open a file once, right-click the file, choose Open with, and pick the correct app. If you want that choice to be permanent, check the box “Always use this app to open .xxx files” before clicking OK.
This is a quick workaround but does not fix the underlying broken association. Use it when you are in a hurry.
Fix 5: Re-register Windows Apps (For Built-in Programs)
If the error occurs with built-in apps like Photos, Calculator, or Notepad, you can re-register them with PowerShell:
- Right-click the Start button and choose Windows PowerShell (Admin) or Terminal (Admin).
- Type
Get-AppxPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}and press Enter. - Wait for the process to finish, then restart your PC.
This command re-registers all built-in UWP apps. It is safe and does not remove personal data.
Fix 6: Check for Malware
Some malware modifies file associations or deletes registry keys to cause this error. Run a full scan with Windows Defender (or your preferred antivirus). If the error persists after other fixes, a scan is a good next step.
When to Reinstall the Program
If the error is tied to a specific third-party application, the cleanest solution is to reinstall that program. Uninstall it through Settings → Apps → Installed apps, then download the latest version from the official website and install it. This restores all necessary registry entries and file associations.
Frequently Asked Questions
What does “Windows cannot find file” mean exactly?
It means Windows tried to launch a program or open a file using a path that is invalid. The path may point to a deleted file, a renamed folder, or a program that was uninstalled.
Why does this error appear when I start my PC?
A startup program is trying to run but its executable is missing. Check the Startup tab in Task Manager and disable any suspicious entries, or remove them from the registry Run keys.
Can I fix this without reinstalling Windows?
Yes, in most cases. The fixes above — editing shortcuts, clearing startup entries, repairing file associations — solve the problem without a system reinstall. Only if the registry is severely corrupted would you consider a repair install or reset.
Why does the error mention “make sure you typed the name correctly”?
That message appears when you type a command in the Run dialog or Command Prompt that Windows cannot find in the system PATH. Check the spelling, or use the full path to the executable.
Will resetting file associations delete my files?
No. Changing the default app for a file type only changes which program opens it. Your files remain untouched.
Is it safe to edit the registry to fix this?
Editing the registry is generally safe if you only delete or modify entries you have identified. Always back up the registry (File → Export) before making changes, and never delete keys you do not understand.