Logging into a Windows 11 desktop only to be greeted by a persistent dialogue box reading “Windows cannot find ‘C:\Program Files\…’. Make sure you typed the name correctly, and then try again” signals an unquoted path or orphaned startup trigger. When applications are uninstalled incompletely, registry keys, scheduled tasks, or startup shortcuts often remain behind pointing toward deleted executable files. Furthermore, because Windows parses space characters as command-line parameter separators, an unquoted path like C:\Program Files\My App\app.exe causes Windows to search for a file named C:\Program, which fails immediately. Resolving this issue involves inspecting startup registries, cleaning Task Scheduler entries, and using Sysinternals Autoruns.
Inspect and Clean the Startup Apps in Task Manager
Windows Task Manager catalogues user-level applications configured to launch during desktop shell initialization.
- Press Ctrl + Shift + Esc to open Task Manager.
- Click on the Startup apps tab (indicated by a speedometer icon on the left navigation bar).
- Review the list of startup items. Look for any entries named “Program”, displaying a generic blank file icon, or pointing to applications you recently uninstalled.
- Right-click the suspicious entry and select Disable.
- Right-click the entry again and select Open file location to verify if the executable file actually exists on your hard drive.
Remove Orphaned Startup Entries in the Windows Registry
Legacy software installers frequently place automatic boot instructions directly into Windows Run registry hives without encapsulating paths in quotation marks.
- Press Windows Key + R, type
regedit, and press Enter to open the Registry Editor. - Navigate to the primary user startup key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run - Inspect the values in the right pane. Look for any string value pointing to a missing path or lacking double quotation marks around
C:\Program Files\.... - Right-click the orphaned or unquoted key and select Delete.
- Next, navigate to the machine-wide startup hive:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run - Inspect and delete any obsolete pointers.
- Also check the 32-bit compatibility hive:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run - Close the Registry Editor and restart your computer.
Identify Obsolete Tasks in Task Scheduler
Background update checkers and maintenance routines scheduled through Task Scheduler can execute at user logon, throwing errors when program folders are deleted.
- Press Windows Key + S, type
Task Scheduler, and press Enter. - Click on Task Scheduler Library in the left tree.
- In the middle pane, review the list of scheduled tasks.
- Click on each task and select the Actions tab at the bottom to view the program path it attempts to run.
- If a task targets a deleted application in
C:\Program Files, right-click the task name and select Delete.
Use Microsoft Sysinternals Autoruns for Complete Inspection
Microsoft offers a free, authoritative diagnostic utility named Autoruns that reveals every hidden startup hook across the operating system.
- Download Autoruns for Windows directly from Microsoft Learn.
- Extract the ZIP archive, right-click
Autoruns64.exe, and choose Run as administrator. - Switch to the Everything tab and allow the scan to finish.
- Click Options on the top menu bar and check Hide Microsoft Entries to filter out core system components.
- Look for rows highlighted in yellow. Yellow highlights indicate that the target file cannot be found (File not found).
- Right-click any yellow row referencing
C:\Program Filesand select Delete.
Clean the Startup Folder Shortcuts
Physical shortcut files residing inside user startup directories can be orphaned following manual folder deletions.
- Press Windows Key + R, type
shell:startup, and press Enter. - Delete any broken shortcuts located inside this folder.
- Press Windows Key + R, type
shell:common startup, and press Enter. - Delete broken shortcut files from the all-users startup directory.