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

  • It is very good.
    thanks.

  • hi.....
    i had edit registry as you said but i am still facing problem with .exe file. when i double click on any .exe file it shows "open with "dialouge and also run command,control pannel are not woring properly. :mad:
    if you have any idea or solution plz suggest me.

  • it is not working plz suggest any other and correct solution :???:

  • thanx dude....it really works...!!!

  • Hello, i have problem- all applications open with DOS window, and then shut down in 1 second, brining me back to windows desktop....... WtH, why is it doing that?!

  • ATTENTION!!! IT WORKS, BUT YOU MUST SET "%1" %* IN REGEDIT - COMPARE QUOTES

  • USE NORMAL QUOTES, THIS WEBSITE FORMAT IT WRONG

  • :smile: Hi guys

    Reall its cool that this is worked fine

    Gud post

    thanks a lot for the poster who given the solution

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

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

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.