<?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[Open Command at Current Cursor...]]></title><description><![CDATA[<p dir="auto">I’d like to create a command to open a shell in a separate, normal window, at the current directory of the currently opened file. How do I do this? I tried Run (menu) but I’m not sure how to pass parameters or set it up. I tried NPPExec but even with START or CMD \c it either fails or opens it up in the little console window.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/9820/open-command-at-current-cursor</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 05:02:33 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/9820.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Sep 2015 16:50:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Open Command at Current Cursor... on Fri, 04 Sep 2015 16:05:38 GMT]]></title><description><![CDATA[<p dir="auto">You must edit shortcuts.xml with an editor other than Notepad++.  That may be the problem.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/10612</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/10612</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Fri, 04 Sep 2015 16:05:38 GMT</pubDate></item><item><title><![CDATA[Reply to Open Command at Current Cursor... on Fri, 04 Sep 2015 15:40:43 GMT]]></title><description><![CDATA[<p dir="auto">Great suggestions. However, if I change %APPDATA%/Notepad++/Shortcuts.xml it instantly changes it back next time I run the file.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/10610</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/10610</guid><dc:creator><![CDATA[Gary Furash]]></dc:creator><pubDate>Fri, 04 Sep 2015 15:40:43 GMT</pubDate></item><item><title><![CDATA[Reply to Open Command at Current Cursor... on Fri, 04 Sep 2015 11:58:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-Sumner">@<bdi>Scott-Sumner</bdi></a> said:</p>
<blockquote>
<p dir="auto">N++ changed them to “”" and “&amp;”, respectively,</p>
</blockquote>
<p dir="auto">Sorry I didn’t check the preview well enough on this; it should have been more like:</p>
<pre><code>N++ changed them to “&amp;quot;" and “&amp;amp;”, respectively,
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/10607</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/10607</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Fri, 04 Sep 2015 11:58:42 GMT</pubDate></item><item><title><![CDATA[Reply to Open Command at Current Cursor... on Fri, 04 Sep 2015 11:43:08 GMT]]></title><description><![CDATA[<p dir="auto">Here’s a nice modification to guy038’s CMD window command, that will put the directory at time of launch into the title bar of the CMD window.  This is handy when you have multiple CMD windows open, for quicker identification of which is which.  Here it is:</p>
<pre><code>&lt;Command name="Launch CMD in current folder" Ctrl="no" Alt="yes" Shift="yes" Key="67"&gt;cmd /T:70 /K title &amp;quot;$(CURRENT_DIRECTORY)&amp;quot; &amp;amp;&amp;amp; cd /d $(CURRENT_DIRECTORY)&lt;/Command&gt;
</code></pre>
<p dir="auto">The way it works is that the CMD.exe program is given TWO commands instead of one.  The first command is the “title” command, which does the obvious thing and sets the text of the title bar of the CMD window.  This must be separated from the second command (i.e., “cd”) by two ampersand characters (the way to tell the CMD.exe program to execute more than one command).</p>
<p dir="auto">One thing I found interesting with testing this out is that when I was editing shortcuts.xml (with a non-N++ editor!), I used actual double-quote (") and ampersand (&amp;) characters in my edits.  N++ changed them to “"” and “&amp;”, respectively, when it next saved shortcuts.xml.  That’s the data I’ve pasted here.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/10606</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/10606</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Fri, 04 Sep 2015 11:43:08 GMT</pubDate></item><item><title><![CDATA[Reply to Open Command at Current Cursor... on Thu, 03 Sep 2015 22:41:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi <strong>Gary</strong>,</p>
<p dir="auto">Before the Notepad++ <strong>v6.5.2</strong>, starting with these two commands <strong>Open Containing Folder - Explorer</strong> and <strong>Open Containing Folder - cmd</strong>, in the <strong>File</strong> menu, they were stored in the <strong>shortcuts.xml</strong> file, <em>in the <strong>UserDefinedCommands</strong> section</em>, as below :</p>
<pre><code>&lt;Command name="Open containing folder" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;explorer $(CURRENT_DIRECTORY)&lt;/Command&gt; 
&lt;Command name="Open current dir cmd" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;cmd /K cd /d $(CURRENT_DIRECTORY)&lt;/Command&gt;
</code></pre>
<p dir="auto">I, personally, modified these <strong>two</strong> commands a little bit :</p>
<ul>
<li>
<p dir="auto">I modified their names</p>
</li>
<li>
<p dir="auto">I added shortcuts for the two commands ( <strong>ALT + SHIFT + E</strong> and <strong>ALT + SHIFT + C</strong> )</p>
</li>
<li>
<p dir="auto">In the <strong>CMD</strong> command, I added the <strong><code>/T:</code></strong> option, to change the <strong>foreground</strong> and <strong>background</strong> colour of the CMD window</p>
<p dir="auto">&lt;Command name=“Launch EXPLORER in current folder” Ctrl=“no” Alt=“yes” Shift=“yes” Key=“69”&gt;explorer $(CURRENT_DIRECTORY)&lt;/Command&gt;<br />
&lt;Command name=“Launch CMD in current folder” Ctrl=“no” Alt=“yes” Shift=“yes” Key=“67”&gt;cmd /T:70 /K cd /d $(CURRENT_DIRECTORY)&lt;/Command&gt;</p>
</li>
</ul>
<p dir="auto">So I presume, that you could <strong>customize</strong> your CMD command :-) Just execute the command <strong><code>cmd /?</code></strong> to get all the CMD options !</p>
<p dir="auto">Cheers,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/10575</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/10575</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 03 Sep 2015 22:41:29 GMT</pubDate></item><item><title><![CDATA[Reply to Open Command at Current Cursor... on Thu, 03 Sep 2015 17:37:34 GMT]]></title><description><![CDATA[<p dir="auto">Thank you! Works like a charm. Is there a way to add other things to that menu?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/10574</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/10574</guid><dc:creator><![CDATA[Gary Furash]]></dc:creator><pubDate>Thu, 03 Sep 2015 17:37:34 GMT</pubDate></item><item><title><![CDATA[Reply to Open Command at Current Cursor... on Thu, 03 Sep 2015 17:00:33 GMT]]></title><description><![CDATA[<p dir="auto">Hello <strong>Gary</strong>,</p>
<p dir="auto">Maybe I’m completely <strong>wrong</strong> but, are you looking for the following N++ command, below ?</p>
<p dir="auto"><strong>File - Open Containing Folder - cmd</strong></p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/10572</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/10572</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 03 Sep 2015 17:00:33 GMT</pubDate></item></channel></rss>