How to Restore the .exe File Association

When the file association for the .exe extension in the registry gets corrupted, and it can be caused by a virus. You can edit the registry to restore the association. Here's how:

  1. Click Start, Run. In the Run box, type cmd.
  2. Type the following at the command prompt. Hit Enter after each line:
    cd\windows
    copy regedit.exe regedit.com
    start regedit.com [or regedit.com]
  3. Open the registry editor and go to the following key: HKEY_CLASSES_ROOT\exefile\shell\open\command.
  4. Double-click the (Default) value in the right pane.
  5. Delete the value data shown, and type: "%1" %*" in the Value Data field. Include the quotes.
  6. Close the Registry Editor.
  7. Restart Windows.



 

RETURN TO TIPS AND TRICKS PAGE

INFORMATION PROVIDED IN THIS DOCUMENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND FREEDOM FROM INFRINGEMENT. USE AT YOUR OWN RISK!