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

  • regedit opens into notepad as well.

  • Try to open my .reg file. It should open in Regedit because of association and fix this problem automatically. Let me know if it helps...

  • :sad: Tried to run regedit at the command prompt, opens in notepad. Tried to rename regedit.exe to regedit.com, get Access is denied message. Merged the .reg file and it didn't help. :sad: Any other ideas?

  • Hi MATT,

    Just Format THAT! :cool:

  • VG

    @Matt

    Please read the comments in this topic as well. A few people posted some different methods which can help you.

  • Thnks a lot.

    Its fine working...

  • hi guys.. the thing which you say are right! but my problem is so different..! you told to open the RUN and type REGEDIT..! But the result is it opens with the "open with" window for me! what to do i am totally stuck! if i try to install any software also it shows the "open with" window!

  • i can t open the command prompt also... if i open it shows "open with" window! for each and every application i try to open it displays the "open with" window! then how can i access the regedit or the command prompt of windows???

  • OLI,
    Use the .reg file, KEXIK refers to, about 14 comments up.

  • I have this problem.. but I can't run cmd, or regedit.exe... All exe files open with notepad..

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.