Wednesday, April 2, 2014

Ways to Fix or Restore Broken .EXE .LNK .COM Association Caused by Virus - part 1



HAI GUYS.

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]



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…



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.



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.



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]



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

EXE Files Always Open with Notepad or Other Applications OR Can’t Open EXE Files in Windows

You dont have to do that much. This is easier:
1. Open command prompt
2. Type "assoc .exe=exefile" and press enter.
done.



METHOD A: Using Ready-Made Registry Script

Download following ZIP file, extract it and run the extracted REG file. It'll ask for confirmation, accept it. It should solve the problem.

METHOD B: Manually Editing Windows Registry

1. Open Command Prompt by typing command in RUN dialog box.
2. Now provide following command:
cd\windows

3. It'll activate Windows folder. Now provide following command to open Registry Editor:
regedit


NOTE: If you can't open "regedit", press CTRL+ALT+DEL keys and open "Task Manager". Now click on "File" menu and hold down the "CTRL" key and click on "New Task" menu. It'll open a Command Prompt window. Now provide regedit.exe command and press Enter. It'll open registry editor without any problem.

4. Now go to following key:
HKEY_CLASSES_ROOT\.exe
In right-side pane, change value of Default key to exefile
5. Now go to:
HKEY_CLASSES_ROOT\exefile\shell\open\command
In right-side pane, change value of Default key to:
"%1" %*

6. That's it. Now exit Registry Editor and restart your Windows. Now you should be able to open EXE files without any problem.

METHOD C: Using Microsoft Fixit Tool

Microsoft has also released an automatic Fixit tool to fix this annoying problem. This Fixit tool is based on the same method given above in this tutorial.
You can download it using following link:

Download Fixit Tool