<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[batch scripts now open in npp instead of running.]]></title><description><![CDATA[<p dir="auto">What the title says. I’m using Win 10, and associated filetypes with NPP so I’d have “Edit with Notepad++” in the context menu. “Open with…” wasn’t appearing, and I assumed I’d be able to right click and use Run. Well, now Edit with NPP shows up, but I no longer have Run as an option, and double-clicking also opens the file in NPP. How can I make this work?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19350/batch-scripts-now-open-in-npp-instead-of-running</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 22:04:58 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19350.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 May 2020 20:14:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to batch scripts now open in npp instead of running. on Tue, 26 May 2020 18:29:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> I thought, they wanted Batch to run instead of opening it in Notepad++ directly (like the default functionality); guess I mis-understood their motives…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54323</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54323</guid><dc:creator><![CDATA[Vin dickator]]></dc:creator><pubDate>Tue, 26 May 2020 18:29:32 GMT</pubDate></item><item><title><![CDATA[Reply to batch scripts now open in npp instead of running. on Tue, 26 May 2020 13:54:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cobaltcoyote" aria-label="Profile: cobaltcoyote">@<bdi>cobaltcoyote</bdi></a> asked a question almost a month ago:</p>
<p dir="auto">Hmm, I wonder how we missed that post originally.  I know you haven’t been back, but sorry for not replying.</p>
<p dir="auto">My advice would have been similar to what I said <a href="https://community.notepad-plus-plus.org/post/54126">here</a>.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/vin-dickator" aria-label="Profile: Vin-dickator">@<bdi>Vin-dickator</bdi></a> ,</p>
<p dir="auto">I appreciate that you were trying to help.  However, I don’t know whether that would really fix it.  First, because that would just change it so the “edit in Notepad++” entry would go away, rather than allowing both to co-exist.  Also, given the way that <a class="plugin-mentions-user plugin-mentions-a" href="/user/cobaltcoyote" aria-label="Profile: cobaltcoyote">@<bdi>cobaltcoyote</bdi></a> changed the association, there’s a good chance it’s not even using the <code>batfile</code> entry in the registry anymore; Notepad++ possibly created a separate key, and redirected <code>.bat</code> to that key, rather than to the <code>batfile</code>.  The OP would then need to first change <code>Computer\HKEY_CLASSES_ROOT\.bat</code> back to having a <strong>(Default)</strong> of <code>batfile</code> before that fix would work – and probably wouldn’t need that fix if the old <code>batfile</code> had been left unmodified.</p>
<p dir="auto">I would then suggest manually adding a new verb below <code>Computer\HKEY_CLASSES_ROOT\batfile\shell</code>, with key=<code>Notepad++</code>, subkey=<code>command</code> with <strong>(Default)</strong> set to <code>"c:\program files\notepad++\notepad++.exe" "%1" %*</code> (or just change the <code>edit</code> command from <code>notepad.exe</code> to the notepad++ command I just listed.)</p>
<p dir="auto">But the fundamental problem was the <strong>Open With</strong> bug originally described.  And following my advice from the other post would help fix that underlying root cause, too.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/54317</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54317</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 26 May 2020 13:54:15 GMT</pubDate></item><item><title><![CDATA[Reply to batch scripts now open in npp instead of running. on Tue, 26 May 2020 12:23:14 GMT]]></title><description><![CDATA[<p dir="auto">Try this,</p>
<p dir="auto">Open Registry Editor, (regedit in Run {Win+R})</p>
<p dir="auto">Goto</p>
<pre><code>Computer\HKEY_CLASSES_ROOT\batfile\shell\open\command
</code></pre>
<p dir="auto">Change “default” key to</p>
<pre><code>"%1" %*
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/54306</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/54306</guid><dc:creator><![CDATA[Vin dickator]]></dc:creator><pubDate>Tue, 26 May 2020 12:23:14 GMT</pubDate></item></channel></rss>