Solution: .EXE Files Always Open with Notepad or Other Applications



Many times ppl face problems while opening .EXE files.

  • The EXE file opens in Notepad.
  • EXE file opens in some other installed programs.
  • Windows displays "Open With" dialog box to choose the program.
  • Windows shows error message, "Windows cannot find .exe file. Make sure you typed the name correctly".

Most of the times it happens when you accidentally change .Exe file type settings from Folder Options. Sometimes it might happen due to virus.

Anyway no need to worry. Here is a solution which will fix this annoying problem:

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 regedit without any problem.

4. Now goto following key:

HKEY_CLASSES_ROOT\.exe

In right-side pane, change value of Default key to exefile

5. Now goto:

HKEY_CLASSES_ROOT\exefile\shell\open\command

In right-side pane, change value of Default key to:

"%1" %*

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

Complete list of AskVG articles



This article was posted in Troubleshooting, Windows 7, Windows Vista, Windows XP.


Share |


Related Articles

Popular Articles



60 Comments

  • hii m still facing problem after give command regedit on command window. regedit not open if u have any other solution please help.

  • When I try running regedit, it will open in, you guessed it, notepad. So yeah, I'm still stuck. Has anyone found any other solutions?

  • VG

    ^^ Did you try to open regedit in DOS as suggested? If yes and it doesnt work, then rename regedit.exe to regedit.com by using following command in DOS:

    ren regedit.exe regedit.com

    and then run regedit.com it should work.

  • Try to open this reg file. It will do changes mentioned above for you:

    Click Here

  • VG

    ^^ Sorry for the inconvenience. Your previous posts were automatically removed by the spam filter. Now I have approved your post. :)

  • Found a work around solution to this. If all else fails just create a new user account, the problem seems to be gone. You'll lose all your settings but seems to be much easier overall... Besides that way you dont have to fuck around with the registry.

  • hehe, nice solution too... :smile: But have you tried my reg file (mentioned above)? I think it should solve this problem coz it write correct shell params to registry...

  • thats a lot.it really works!!!!

  • Working men !!!
    my computer was infected by spool.exe

  • I tried the fix but it didn't work. Any other ideas before I reinstall windows?

    Thanks

Add a Comment

NOTE: If you can't see your comment, please be patient. It'll appear as soon as we approve it.


Create an avatar that will appear with your comment.