5 Ways to Fix or Restore Broken .EXE .LNK .COM Association Caused by Virus

One day you might be using your computer, and after installing a piece software or you are recovering and trying to cleanup the system from a malware attack, there might be a few issues which stop the computer running properly. One of the common problems which malicious software or a faulty install can leave behind is the system not being able to run any programs, and you receive an error when you try to launch a program such as your web browser or Word etc.

Windows can’t open this file:
File: [name.exe]

Windows can't open this file

This happens when your system no longer recognizes that when you double click on an executable (.EXE) file it should launch the program and not be opened by another program like a text file or image would for example. A corrupted .EXE association will then stop you running any programs until the system has been told to execute the file when you open it. Another related common error message you could receive is:

This file does not have a program associated with it for performing this action…

This file does not have a program associated

Because these errors can stop you running tools such as Regedit, Task Manager and even the Command Prompt as they’re all executable .EXE files, fixing it is quite often not as easy as it might seem. Sometimes other associations may also have been affected, so you may not be able to import something like a .REG file into the registry to fix it. Obviously, the first and most important file extension to fix is the .EXE extension. Once this sorted and working, you are able to run the registry editor and other tools to start repairing other broken extensions. Here’s a selection of ways for fixing .EXE extension issue and get your programs launching properly again. Getting to the Command Prompt

If you are trying any of the fixes below that require the use of the Command Prompt, you might not be able to get to it because you would obviously have to type cmd.exe into a Run dialog or run the cmd.exe shortcut from the Accessories Start menu. There is however, a simple trick to get around this without needing to do anything like renaming files in the Windows folder. Follow the instructions below.

1. Press Ctrl+Shift+Esc simultaneously to bring up the Windows Task Manager.

2. XP users can skip to step 3. The extra step needed for Vista, 7 and 8 is to run an elevated Command prompt or you will receive an “Access denied” message when typing in the commands. In Task Manager click the Processes tab, then click on the “Show processes from all users” button at the bottom. If you don’t have the button and only a tick box you should already have administrator rights.

show processes from all users

3. Click the File menu and move the mouse cursor over to New Task (Run…), but DON’T click it yet. Now press and hold the Ctrl key while left clicking on New Task (Run…) to bring up the Command Prompt.

open cmd from task manager

Tip: The method of using Ctrl+Shift+Esc to access Task Manager is also quite helpful when you have a rogue antivirus program on the system that launches itself every time you try to run an executable. Running a program via the New Task (Run…) option will let you run an executable file even though the rogue is intercepting file executions. As Task Manager is also usable, any suspicious or known processes can be killed and then one of the below files to restore the executable file type or a malware removal tool can be used.


1. Repair using a .REG file

If the EXE association is not too badly damaged, you may be able to repair it by importing the correct values into the registry. Simply download the below file (make sure you right click and select Save As) for your o/s and double click it to import into the registry.

Download Vista and 7 EXE Fix.reg

Download XP EXE Fix.reg

If you cannot import the .REG file because Windows cannot find the registry editor, then try importing from the Command Prompt using the method above to open a CMD window. Type the following command:

REG IMPORT [drag and drop the .reg file onto the CMD window]

reg import

Now try out your .EXE files, a reboot won’t be needed to see if it has worked or not.


2. Repair using Another Executable File

Although it may seem counter intuitive to most people, executable files can still be launched even though the EXE association and file type might be broken. This is because there are other types of executable file such as .COM and .SCR which could still have working associations and therefore files with those extensions will still launch.

The files below were created from the .REG files in the previous solution with a handy little tool called Reg2Exe which we’ve written about before that simply turns a .REG file into an executable. There will be no interaction after you run one of these files, simply try an executable .EXE file afterwards.

Download Vista 7 EXE Fix.com | Download Vista 7 EXE Fix.scr

Download XP EXE Fix.com | Download XP EXE Fix.scr

Alternatively, the people over at BleepingComputer have created a utility called FixExec that will fix the .EXE, .BAT and .COM file associations in Windows XP up to Windows 8. It will also terminate any malicious processes found in typical areas where malware might launch from which could try to reset the associations back again to non default.

FixExec

Simply run the tool and if it detects any wrong associations, FixExec will repair them for you. There are separate 32-bit and 64-bit versions available along with pre-named .COM, .PIF and .SCR versions.

Download FixExec

There are several more solutions for broken file associations on Page 2.

50 Comments - Write a Comment

  1. Ricky 2 months ago
  2. Katie 8 months ago
  3. Patrick 1 year ago
  4. ComputersAren'tForMe 1 year ago
  5. Julian C 1 year ago
  6. TDavis 2 years ago
  7. YASH YADAV 2 years ago
  8. Si Hammer 2 years ago
  9. Phil 2 years ago
  10. Datguy 2 years ago
  11. Datguy 2 years ago
  12. Eric 2 years ago
  13. Andrew 2 years ago
  14. tony-black 2 years ago
  15. Andrew 2 years ago
  16. Nicole Thomas 2 years ago
  17. Neil Watkins 2 years ago
  18. ilija Boy 3 years ago
  19. mohsin 3 years ago
  20. florian 3 years ago
  21. Dharmesh 3 years ago
  22. Sam 4 years ago
  23. mohammad 4 years ago
  24. baphi 5 years ago
  25. marcelo 5 years ago
  26. harshit 5 years ago
  27. Emanuele Peruzzi 5 years ago
  28. Rebecca 5 years ago
  29. Nicksharan71 5 years ago
  30. Doreen Effertz 5 years ago
  31. Tenmiles 5 years ago
  32. Zorori 6 years ago
  33. kim 6 years ago
  34. evmiller 6 years ago
  35. Vidhya S 7 years ago
  36. maphyche 7 years ago
  37. Tom 7 years ago
  38. amol 7 years ago
  39. Liam 7 years ago
  40. Geoserv 9 years ago
  41. sachin 9 years ago
  42. Zul 9 years ago
  43. Knysliux001 9 years ago
  44. chaosdreamer 9 years ago
  45. MR7 9 years ago
  46. Rust 9 years ago
  47. Joel 9 years ago
  48. Hermann 9 years ago
  49. Shamsul Akmal Ahmad 9 years ago
  50. Jayhan 9 years ago

Leave a Reply

Your email address will not be published. Required fields are marked *

Note: Your comment is subject to approval. Read our Terms of Use. If you are seeking additional information on this article, please ask in our forum or contact us directly.