{"id":24,"date":"2008-07-11T20:14:52","date_gmt":"2008-07-12T01:14:52","guid":{"rendered":"http:\/\/factormystic.net\/blog\/?p=24"},"modified":"2008-07-11T20:14:52","modified_gmt":"2008-07-12T01:14:52","slug":"default-programs-editor-example-use-changing-the-edit-context-command-for-batch-files","status":"publish","type":"post","link":"https:\/\/factormystic.net\/blog\/default-programs-editor-example-use-changing-the-edit-context-command-for-batch-files","title":{"rendered":"Default Programs Editor, Example Use: Changing the &#8220;Edit&#8221; context command for batch files"},"content":{"rendered":"<p>This is a walkthrough on how to change the &#8220;edit&#8221; context command for batch files from notepad to some other text editor<\/p>\n<p>Start the program and make sure you&#8217;re on the &#8220;File Association&#8221; tab. On the left where it says &#8220;Search by Extension&#8221;, start typing &#8220;bat&#8221;. It searches as you type, so the .bat entry will come up right away. Select the pertinant entry on the list, and the middle and right panels will update with the file type details.<\/p>\n<p><a href=\"https:\/\/factormystic.net\/blog\/wp-content\/uploads\/2008\/07\/default_programs_editor-edit_bat_steps_1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-20\" title=\"Default Programs Editor- Example part 1\" src=\"https:\/\/factormystic.net\/blog\/wp-content\/uploads\/2008\/07\/default_programs_editor-edit_bat_steps_1-300x115.jpg\" alt=\"Default Programs Editor- Example part 1\" width=\"300\" height=\"115\" srcset=\"https:\/\/factormystic.net\/blog\/wp-content\/uploads\/2008\/07\/default_programs_editor-edit_bat_steps_1-300x115.jpg 300w, https:\/\/factormystic.net\/blog\/wp-content\/uploads\/2008\/07\/default_programs_editor-edit_bat_steps_1.jpg 926w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>For this example, the right pane is what we need, because it has the list of context menu commands (&#8220;verbs&#8221; in Windows file association jargon). The one is the default double-click verb for this file type, but we&#8217;re changing the &#8220;Edit&#8221; entry, so click that. Note that the current action is to run notepad.exe, and pass the file you&#8217;ve clicked as the parameter (that&#8217;s what the &#8220;%1&#8221; is). Click the &#8220;Edit&#8230;&#8221; button.<\/p>\n<p><a href=\"https:\/\/factormystic.net\/blog\/wp-content\/uploads\/2008\/07\/default_programs_editor-edit_bat_steps_2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-21\" title=\"Default Programs Editor- Example part 2\" src=\"https:\/\/factormystic.net\/blog\/wp-content\/uploads\/2008\/07\/default_programs_editor-edit_bat_steps_2-300x140.jpg\" alt=\"Default Programs Editor- Example part 2\" width=\"300\" height=\"140\" srcset=\"https:\/\/factormystic.net\/blog\/wp-content\/uploads\/2008\/07\/default_programs_editor-edit_bat_steps_2-300x140.jpg 300w, https:\/\/factormystic.net\/blog\/wp-content\/uploads\/2008\/07\/default_programs_editor-edit_bat_steps_2.jpg 365w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Here you can edit the verb text and command. In the example here, I clicked &#8220;Browse&#8230;&#8221;, which opens a standard Windows Open dialog, and searched for EditPlus. This should be fine if you have that particular editor installed, otherwise, choose your preferred text editor. The path to your editor will be put into the command text box. You&#8217;ll need to add &#8220;%1&#8221; to the end, so that your editor knows what file you&#8217;ve chosen to edit. Then click &#8220;Save&#8221;.<\/p>\n<p><a href=\"https:\/\/factormystic.net\/blog\/wp-content\/uploads\/2008\/07\/default_programs_editor-edit_bat_steps_3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-22\" title=\"Default Programs Editor- Example part 3\" src=\"https:\/\/factormystic.net\/blog\/wp-content\/uploads\/2008\/07\/default_programs_editor-edit_bat_steps_3-300x115.jpg\" alt=\"Default Programs Editor- Example part 3\" width=\"300\" height=\"115\" srcset=\"https:\/\/factormystic.net\/blog\/wp-content\/uploads\/2008\/07\/default_programs_editor-edit_bat_steps_3-300x115.jpg 300w, https:\/\/factormystic.net\/blog\/wp-content\/uploads\/2008\/07\/default_programs_editor-edit_bat_steps_3.jpg 926w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Note that there is now a tree node for Edit. The child nodes for any verb are also Edit commands, but the highest precedence setting is the one that Windows uses in the context menu. Since our modification is the top node for Edit, it&#8217;s the one that Windows will use when you right click a .bat file. Done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a walkthrough on how to change the &#8220;edit&#8221; context command for batch files from notepad to some other text editor Start the program and make sure you&#8217;re on the &#8220;File Association&#8221; tab. On the left where it says &#8220;Search by Extension&#8221;, start typing &#8220;bat&#8221;. It searches as you type, so the .bat entry [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,11],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-default-programs-editor","category-documentation"],"_links":{"self":[{"href":"https:\/\/factormystic.net\/blog\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/factormystic.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/factormystic.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/factormystic.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/factormystic.net\/blog\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":0,"href":"https:\/\/factormystic.net\/blog\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/factormystic.net\/blog\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/factormystic.net\/blog\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/factormystic.net\/blog\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}