Hi....whenever I try top open a .exe file....this is the error that I get:-

The file does not have a program associated with it for performing this action. Create an association in the folder options in control menu.

I tried to add a new extension as exe in file types in folder options. But that did not work. Whenever I opened the folder options again, the exe file wouldn't be there.

What shall I do?
Any help would be much appreciated.

Dani AI

Generated

’s pointer to a file‑association/registry fix matches the usual, reliable cure; ’s follow‑up confirms it worked here. The problem means Windows lost or had its .exe file‑type handlers changed (one common cause is a bad installer or malware modifying registry keys; another is accidentally assigning .exe to the wrong program). If only a single .exe fails, the file itself may be corrupt; if every .exe is affected, the registry association is the likely culprit. (learn.microsoft.com)

A minimal, safe registry restore that brings back the default .exe handling (save as plain text named fix_exe.reg, keep a registry/export backup or a System Restore point first):

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\UserChoice]

[HKEY_CLASSES_ROOT\.exe]
@="exefile"
"Content Type"="application/x-msdownload"

[HKEY_CLASSES_ROOT\exefile\DefaultIcon]
@="%1,0"

[HKEY_CLASSES_ROOT\exefile\shell\open\command]
@="\"%1\" %*"

If Explorer or regedit won’t run, the documented fallback is to import the .reg from Safe Mode/Recovery or use the regedit.exe->regedit.com trick so the registry can be edited even when .exe handling is broken. Always import only after a backup. (learn.microsoft.com)

A quicker command‑line approach (when an elevated command prompt is available) is to reset the associations with the built‑in tools and then restart Explorer or reboot:

  • assoc .exe=exefile
  • ftype exefile="%1" %*

These commands are the documented Windows way to view and set file‑extension mappings and their open commands. (learn.microsoft.com)

After restoring execution, run full anti‑malware scans, inspect startup/services for unknown entries, and use System File Checker (sfc /scannow) and DISM if needed to repair system components. If a fix immediately reverts, assume active infection and use offline rescue media or Repair/Restore options rather than repeatedly reapplying fixes. (support.microsoft.com)

Recommended Answers

All 4 Replies

Is this for all .exe's or a particular one?

Download the fix for .exes

commented: Wow, that's nice ! +1

Download the fix for .exes

Thanks...thanks...thanks a thousand tons dude. It worked!

You are a life saver.:)

No problem. That site is really helpful, i keep it bookmarked.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.