{"id":1113,"date":"2007-03-09T13:28:21","date_gmt":"2007-03-09T07:58:21","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=1113"},"modified":"2024-04-27T13:47:40","modified_gmt":"2024-04-27T08:17:40","slug":"exe-files-open-notepad-fix-association","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/exe-files-open-notepad-fix-association\/","title":{"rendered":"[Fix] .EXE Files Open in Notepad or Other App when Double-clicked"},"content":{"rendered":"<p><em>Summary: Double-clicking an .exe file may open Notepad or any other application, displaying junk characters. On some systems, the Open with dialog may appear when double-clicking .exe files. This article explains how to fix the .exe file association in Windows 10 and 11.<\/em><\/p>\n<p>Did you accidentally use the Default Programs or Open With dialog to associate .exe file types with an application like Notepad? This causes every program to open in that chosen application. Unfortunately, Windows does not provide an option to reset the .exe file associations. You need to fix the association settings using a <em>.reg<\/em> file or script.<!--more--><\/p>\n<p>After incorrectly associating .exe files using Notepad, Notepad opens whenever a .exe file is double-clicked. Here is an example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-31601\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/03\/exe_open_notepad.png\" alt=\"exe files open in notepad\" width=\"602\" height=\"326\" \/><\/p>\n<p>Or, you may see the &#8220;Open with&#8221; dialog when you run a program (.exe file).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-31600\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/03\/exe_open_with_dialog.png\" alt=\"exe files open with dialog\" width=\"408\" height=\"536\" \/><\/p>\n<div class=\"qt\"><em>By default, the Open with option won&#8217;t appear in the context menu for executable files. The problem may have happened after the user employed a registry tweak that adds &#8220;Open with\u2026&#8221; to the context menu for all file types. Despite this problem, you should be able to launch applications by double-clicking on the data files. For example, you should still be able to launch the Microsoft Word application by double-clicking on a .doc or .docx file, but not by running <em>winword.exe<\/em> directly or clicking the Word program shortcut.<\/em><\/div>\n<h2>Resolution<\/h2>\n<p>To fix the .exe file association issue, delete the <b>UserChoice<\/b> registry key. This has to be done using a REG file or a script, as trying to launch <code>regedit.exe<\/code> directly would cause the same problem. Follow these steps:<\/p>\n<h3>1) Run exefix_cu.reg<\/h3>\n<ol>\n<li>Right-click <a href=\"https:\/\/www.winhelponline.com\/fileasso\/exefix_cu.reg\"><strong>exefix_cu.reg<\/strong><\/a> and choose &#8220;Save Link as&#8221; in your browser, and download the file to Desktop.<\/li>\n<li>Right-click on the REG file and choose <strong>Merge<\/strong>. The .REG file clears the following key, which shouldn&#8217;t exist for .exe files.\n<pre>HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.exe\\UserChoice<\/pre>\n<\/li>\n<\/ol>\n<p><em>When you use the Open With dialog to associate .exe files with another application, it stores the settings in the above registry key under a value named <i><b>Progid<\/b><\/i>. The <i><b>Progid<\/b><\/i> data will contain the application&#8217;s exe file name (<i>Applications\\Notepad.exe<\/i>, <i>Applications\\iexplore.exe<\/i>, or a Programmatic Identifier such as <b>txtfile<\/b>, <b>jpegfile,<\/b> etc).<\/em><\/p>\n<h3>2) Run exefix.reg<\/h3>\n<p>If the above fix doesn&#8217;t help, download <a href=\"https:\/\/www.winhelponline.com\/fileasso\/exefix.reg\"><strong>exefix.reg<\/strong><\/a> (right-click and &#8220;Save link as&#8221; in your browser) and run it. Click Yes to confirm.<\/p>\n<p>(The registry fix restores the .exe file association settings in Windows 10 and 11.)<\/p>\n<p><strong><u>Ignore<\/u> the following error:<\/strong><\/p>\n<pre class=\"err\">Cannot import exefix.reg: Not all data was successfully written to the registry. Some keys are open by the system or other processes, or you have insufficient privileges to perform this operation.<\/pre>\n<p>See if that fixes the .exe association settings.<\/p>\n<p><em>Related article: <a href=\"https:\/\/www.winhelponline.com\/blog\/remove-file-association-windows\/\">How to Remove a File Association Using the Registry Editor?<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Double-clicking an .exe file may open Notepad or any other application, displaying junk characters. On some systems, the Open with dialog may appear when double-clicking .exe files. This article explains how to fix the .exe file association in Windows 10 and 11. Did you accidentally use the Default Programs or Open With dialog to &#8230; <a title=\"[Fix] .EXE Files Open in Notepad or Other App when Double-clicked\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/exe-files-open-notepad-fix-association\/\" aria-label=\"Read more about [Fix] .EXE Files Open in Notepad or Other App when Double-clicked\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[7],"tags":[209,441],"class_list":["post-1113","post","type-post","status-publish","format-standard","hentry","category-windows","tag-file-association","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":8738,"url":"https:\/\/www.winhelponline.com\/blog\/open-with-notepad-plus-right-click-menu-windows\/","url_meta":{"origin":1113,"position":0},"title":"Add &#8220;Open with Notepad++&#8221; to the Right-Click Menu","author":"Ramesh","date":"April 19, 2019","format":false,"excerpt":"Many users have replaced Notepad with Notepad++ as the default text editor on their computers. Others use Notepad++ only when needed, and launch it via the Open with menu and choose Notepad++ from the list of options. This post tells you how to add the Open with Notepad++ command to\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"Notepad++ right-click menu in Windows","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/open-with-notepad-plus-registry-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/open-with-notepad-plus-registry-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/open-with-notepad-plus-registry-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/open-with-notepad-plus-registry-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1009,"url":"https:\/\/www.winhelponline.com\/blog\/fix-error-system-information-cannot-open-this-nfo-file-xp\/","url_meta":{"origin":1113,"position":1},"title":"Error: System Information cannot open this NFO file","author":"Ramesh","date":"February 12, 2008","format":false,"excerpt":".nfo (also written .NFO or NFO, a contraction of \"info\", or \"information\") is a commonly used three-letter filename extension for text files that accompany various digital scene releases with information about them. NFO files are used to deliver release information about the media, such as the digital media title, authorship,\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":".nfo file system information utility error","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/02\/nfo-sample-file.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/02\/nfo-sample-file.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/02\/nfo-sample-file.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/02\/nfo-sample-file.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":5732,"url":"https:\/\/www.winhelponline.com\/blog\/replace-notepad-text-editor-notepad-plus-association\/","url_meta":{"origin":1113,"position":2},"title":"How to Replace Notepad With Notepad++ or Other Editor","author":"Ramesh","date":"November 2, 2017","format":false,"excerpt":"If you\u2019re looking at how to replace Notepad with Notepad++ or any third-party editor, this post explains how to do it. Notepad++ is a free source code editor and Notepad replacement that supports several languages. Let\u2019s see how you can replace Notepad with Notepad++ without replacing any system files. Notepad\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"notepad plus replace debugger notepad.exe","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/debugger-notepad-plus-switch.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/debugger-notepad-plus-switch.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/debugger-notepad-plus-switch.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/11\/debugger-notepad-plus-switch.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":8637,"url":"https:\/\/www.winhelponline.com\/blog\/cant-add-program-to-open-with-menu-list-windows\/","url_meta":{"origin":1113,"position":3},"title":"[Fix] Cannot Add a Program to Open with List in Windows","author":"Ramesh","date":"April 13, 2019","format":false,"excerpt":"When you right-click on a file, select \"Open with\", click \"choose another app\" and select a program using the Browse dialog, the program may fail to appear in the \"Open With\" dialog. It may appear as if nothing happened after you selected the program in the browse dialog -- i.e.,\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"open with dialog - header image","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/open-with-featured.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/open-with-featured.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/open-with-featured.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/open-with-featured.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":3641,"url":"https:\/\/www.winhelponline.com\/blog\/fix-cannot-run-programs-without-typing-extension-exe-command-prompt\/","url_meta":{"origin":1113,"position":4},"title":"[Fix] Cannot Run Programs Without Typing the Extension (.EXE) in Command Prompt","author":"Ramesh","date":"July 31, 2016","format":false,"excerpt":"If you're unable to launch programs without having to type the extension \".exe\" in a Command Prompt window, you need to fix your PATHEXT variable. For instance, Notepad may launch correctly when you type Notepad.exe, but not when typing Notepad. The latter might show you the following error: 'notepad' is\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"cannot run programs without typing .exe extension pathext","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/07\/pathext-fix-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/07\/pathext-fix-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/07\/pathext-fix-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":1941,"url":"https:\/\/www.winhelponline.com\/blog\/windows-cannot-find-wuapp-exe-windows-10\/","url_meta":{"origin":1113,"position":5},"title":"Error &#8220;Windows cannot find wuapp.exe&#8221; And its Workaround in Windows 10","author":"Ramesh","date":"March 9, 2016","format":false,"excerpt":"In Windows 10, when you click Windows Update from the Tools menu in Internet Explorer, the error \"Windows cannot find wuapp.exe\" occurs. This is because the file wuapp.exe, Windows Update page launcher tool that existed in earlier versions of Windows has been removed in Windows 10; but Internet Explorer 11\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/1113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=1113"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/1113\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=1113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=1113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=1113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}