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.



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

Subscribe to RSS Feed | Email Newsletter | More Articles

Related Articles

Popular Articles



55 Comments

  • Hi, I encountered the same problem and your solution worked perfectly. Many thanks.

    It is very kind of people to maintain sites like this.

    With my best wishes and encouragement.

    Churp.

  • Do it in safe mode and then you can open regedit. ;D Took me awhile to figure it out.

  • Help, when the dialog box came up and asked me what program to use to open a .exe file i chose text editor, and now all of my files open in ext editor. I'm afriad to reboot becuase if it doesn't work, then i won't be able to get on the internet either....help?

  • my regedit also open with other program :(

    wht i can do 4 dat???????

  • How do you open that file that KEXIK mentioned. It just takes me to a site and I don't know what to do with it :(

  • VG

    ^^ Right click on that link and save the file.

  • ^^^Thanks
    I downloaded it and ran it and it said the stuff was successfully added but it still opens in notepad

  • This doesn't work 4 me. Everything was already set to the right things.

  • THE SOLUTION IS CORRECT. All of you are not following the instructions properly.
    Make sure you type 'command' in run box, not 'cmd'
    Type regedit in shell not in run box.
    If you are getting access denied while renaming regedit copy it somewhere and then rename the copy.
    Still cant fix ? Dont screw the system. Go ask your bro to fix it.

  • Thx a lot it really solved my Problem

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.