Search This Blog

Sunday, December 19, 2010

FIX ACCIDENTLY CHANGED DEFAULT PROGRAM TO OPEN .EXE and OTHER FILES


SOMETIMES WE ACCIDENTLY CLICK ON OPEN WITH abc FOR ANY .EXE FILES THEN  IN THAT CASE ALL .EXE FILES JUST TRY TO GET RUN THROUGH abc PROGRAM BUT FAILs


When we use the Open With dialog to associate .exe files with another application, the settings are stored in the following registry key:


HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ FileExts \ .exe \ UserChoice


There is a value named Progid in the right pane. The Progid data contains the application's exe file name (Applications\Notepad.exe or a Programatic Identifier such as txtfile, etc).

Similarly for other files like ".123" , the settings will get stored at

HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ FileExts \ .123 \ UserChoice

TO reach there just open cmd and type regedit ,press enter and follow the path specified above.

To fix the problem, you just need to delete the UserChoice key.


//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 regedit without any problem.  or check last option of following article 
http://avinash-softtricks.blogspot.in/2012/12/different-ways-to-open-registry-editor.html //

6 comments:

  1. thanks

    Provided info is useful and worked

    ReplyDelete
    Replies
    1. This comment has been removed by a blog administrator.

      Delete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. It sounds like whoever wrote this did not listen to the problem that they are trying to fix. If .exe is set to open in another application (i.e. command prompt), then no .exe files can be opened. So therefore regedit.EXE or cmd.EXE CAN'T be run to fix the problem

    ReplyDelete
    Replies
    1. Please go through last point of article
      http://avinash-softtricks.blogspot.in/2012/12/different-ways-to-open-registry-editor.html

      With this you can open regedit without any problem even if .exe is set to open with another program.

      Delete
  4. Worked perfectly, Thank you!!

    ReplyDelete