Windows 10 EXE Files Opening With Notepad: Repairing a Broken Program Association
You double-click a program or installer and, instead of running, it opens in Notepad as a screen full of strange symbols. When Windows 10 EXE files opening with Notepad, almost nothing on the PC will start YYPAUS Login normally.
Windows uses file associations to decide which program opens each type of file. Executable files, ending in .exe, are meant to run on their own. If that association is changed, Windows hands them to another program instead.
The change usually happens by accident through the “Open with” menu, though malware can also cause it.
The association can be restored with a short command, without reinstalling Windows.
What Might Be Causing It
EXE files open in the wrong program for these reasons:
- Someone chose “Open with” on an .exe file and ticked “Always use this app.”
- A cleanup or tweak tool damaged file associations.
- Malware changed the association to stop security tools running.
- Registry entries for executable files are corrupted.
Shortcuts on the desktop and Start menu may also stop working, since they point to .exe files.
First Steps to Try
Restore the association from an administrator prompt.
- Press Ctrl + Shift + Esc to open Task Manager.
- Select File > Run new task, type cmd, tick “Create this task with administrative privileges,” and select OK.
- Type assoc .exe=exefile and press Enter.
- Close the window and restart the PC.
- Try opening a program again.
Starting Command Prompt from Task Manager works even when shortcuts and the Start menu are affected.
You may need to restart Windows Explorer as well, using Task Manager, before desktop shortcuts start working again.
If the Problem Continues
Repair Windows and check for malware.
- In the same administrator Command Prompt, run sfc /scannow.
- Run DISM /Online /Cleanup-Image /RestoreHealth.
- Use System Restore to return to a point before the problem began, by typing rstrui in the Run box.
- Run a full scan with Windows Security, followed by Microsoft Defender Offline.
- Remove recently installed tweak or cleanup utilities.
If .lnk shortcuts are also broken, assoc .lnk=lnkfile restores them in the same way.
Protect Your Data First
Type the assoc commands exactly, since a typing error can change the wrong association. Avoid downloading “registry fix” files from unknown websites, which can be harmful. Once things work, create a restore point.
The Bottom Line
EXE files opening in Notepad means the program association has been changed. One assoc command usually restores it, and System Restore or a malware scan handles cases caused by deeper damage.
Afterwards, be careful when using “Open with” on program files. Ticking “Always use this app” for an .exe file is the easiest way to cause this problem again.