<?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[How can I get around NppExec&#x27;s limitations?]]></title><description><![CDATA[<p dir="auto">I cannot do a lot of things in notepad++, such as system(“cls”), or clearing the screen in any way for that matter. After a bit of research, I believe NppExec is at fault (please tell me what I’m doing wrong if that’s not the case). I saw a thread where <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7192">@dinkumoil</a> created a script to run c++ programs in a powershell, but I have no idea how to do that, and what to do with the script that was made. Could somebody help?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19231/how-can-i-get-around-nppexec-s-limitations</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 08:17:30 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19231.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Apr 2020 22:34:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can I get around NppExec&#x27;s limitations? on Wed, 15 Apr 2020 07:00:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14847">@Michael-Vincent</a></p>
<p dir="auto">Thank you for chiming in and providing a more detailed guidance for using my script!</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/18289">@Lowell-Justice</a></p>
<p dir="auto">As an addition to what <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14847">@Michael-Vincent</a> already said: To compile and execute C code you need a C compiler, of course. For simple and quick C test programs I use the <em>Tiny C Compiler</em> (TCC). Its <a href="https://bellard.org/tcc/" rel="nofollow ugc">homepage</a> provides a link to the available downloads.</p>
<p dir="auto">For C++ you could use for example <em>MinGW</em>, the <em>GCC</em> port for Windows, you can download it <a href="https://sourceforge.net/projects/mingw-w64-dgn/files/mingw-w64/" rel="nofollow ugc">from here</a>. To get the latest version take the files <code>mingw-w32-bin-i686-YYYYMMDD.7z</code> for compiling 32 bit programs and <code>mingw-w64-bin-x86_64-YYYYMMDD.7z</code> for compiling 64 bit programs where <code>YYYYMMDD</code> is a placeholder for the release date of the version.</p>
<p dir="auto">To get documentation for <em>GCC</em> visit <a href="http://gcc.gnu.org/onlinedocs/" rel="nofollow ugc">this site</a>. There you will also find a link to the <a href="https://gcc.gnu.org/onlinedocs/gcc-9.3.0/gcc/#toc-GCC-Command-Options" rel="nofollow ugc">documentation of the <em>GCC</em> v9.3 command line options</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52619</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52619</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Wed, 15 Apr 2020 07:00:05 GMT</pubDate></item><item><title><![CDATA[Reply to How can I get around NppExec&#x27;s limitations? on Wed, 15 Apr 2020 02:32:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/18289">@Lowell-Justice</a></p>
<p dir="auto">Yes.  I suggest reading the ample documentation for NppExec:</p>
<p dir="auto">Plugins =&gt; NppExec =&gt; Help/Manual<br />
Plugins =&gt; NppExec =&gt; Help/Docs…</p>
<p dir="auto">And then modifying <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7192">@dinkumoil</a> script to look for a *.cpp extension:</p>
<pre><code>if "$(FileType)" == ".cpp"   goto CPP_FILE
</code></pre>
<p dir="auto">And then adding the redirect you want for CPP_FILE:</p>
<pre><code>:CPP_FILE
npp_exec "Run_CPP_Code"
goto END
</code></pre>
<p dir="auto">And finally add the action for the <code>Run_CPP_Code</code> - you can use <code>Run_C_Code</code> in that “npes_saved.txt” file as an example.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52618</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52618</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Wed, 15 Apr 2020 02:32:57 GMT</pubDate></item><item><title><![CDATA[Reply to How can I get around NppExec&#x27;s limitations? on Wed, 15 Apr 2020 01:00:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14847">@Michael-Vincent</a> do you know if it’s possible to do this with c++?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52615</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52615</guid><dc:creator><![CDATA[Lowell Justice]]></dc:creator><pubDate>Wed, 15 Apr 2020 01:00:46 GMT</pubDate></item><item><title><![CDATA[Reply to How can I get around NppExec&#x27;s limitations? on Tue, 14 Apr 2020 23:35:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/18289">@Lowell-Justice</a></p>
<p dir="auto"><a href="https://github.com/d0vgan/nppexec" rel="nofollow ugc">NppExec</a> does have a console.</p>
<p dir="auto">Plugins =&gt; NppExec =&gt; Show Console</p>
<p dir="auto">Open that and in the console type:</p>
<pre><code>ECHO $(PLUGINS_CONFIG_DIR)
</code></pre>
<p dir="auto">Note the output directory.  If you want to use <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7192">@dinkumoil</a> <a href="https://github.com/dinkumoil/ScriptCollection/tree/master/NppExec%20Scripts" rel="nofollow ugc">script</a> :</p>
<ol>
<li>close Notepad++</li>
<li>copy that ‘npes_saved.txt’ file to your Notepad++ plugin config directory (the output from that command you just ran).</li>
<li>Re-open Notepad++ and open a C file (note in the script you reference, it does <em>not</em> recognize *.cpp files, only *.c</li>
<li>with the C file named with a ‘.c’ extension loaded into Notepad++, open the NppExec console (Plugins =&gt; NppExec =&gt; Show Console)</li>
<li>in the NppExec console type:</li>
</ol>
<pre><code>\Compile_&amp;_Run
</code></pre>
<p dir="auto">That <em>should</em> do it.</p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52611</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52611</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Tue, 14 Apr 2020 23:35:14 GMT</pubDate></item><item><title><![CDATA[Reply to How can I get around NppExec&#x27;s limitations? on Tue, 14 Apr 2020 23:22:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> No, dinkumoil just linked a script and that was about it. From what I understand, NppExec does not have all of the benefits of a command line, and dinkumoil created a script to instead make it so that NppExec opened a powershell that ran your script immediately. I was trying to figure out how I could use this script or in general how I could solve the problem of clearing the command line in c++, but the repo that he linked (<a href="https://github.com/dinkumoil/ScriptCollection/tree/master/NppExec%20Scripts" rel="nofollow ugc">https://github.com/dinkumoil/ScriptCollection/tree/master/NppExec Scripts</a>) did not say anything about how it worked or how to use it. Everything I’ve tried has failed, and I believe this to be due to the nature of NppExec. I would just like to figure out why I cannot clear the command line and how to fix it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52610</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52610</guid><dc:creator><![CDATA[Lowell Justice]]></dc:creator><pubDate>Tue, 14 Apr 2020 23:22:09 GMT</pubDate></item><item><title><![CDATA[Reply to How can I get around NppExec&#x27;s limitations? on Tue, 14 Apr 2020 23:08:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/18289">@Lowell-Justice</a> said in <a href="/post/52606">How can I get around NppExec's limitations?</a>:</p>
<blockquote>
<p dir="auto">I cannot do a lot of things in notepad++</p>
</blockquote>
<p dir="auto">Like what?</p>
<blockquote>
<p dir="auto">such as system(“cls”)</p>
</blockquote>
<p dir="auto">What does this mean?</p>
<blockquote>
<p dir="auto">clearing the screen in any way for that matter.</p>
</blockquote>
<p dir="auto">What “screen” ?</p>
<blockquote>
<p dir="auto">After a bit of research, I believe NppExec is at fault</p>
</blockquote>
<p dir="auto">Why do you think this?<br />
At fault for what?</p>
<blockquote>
<p dir="auto">(please tell me what I’m doing wrong if that’s not the case).</p>
</blockquote>
<p dir="auto">You haven’t told us enough to be able to do this.</p>
<blockquote>
<p dir="auto">I saw a thread</p>
</blockquote>
<p dir="auto">Link?</p>
<blockquote>
<p dir="auto">where <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7192">@dinkumoil</a> created a script to run c++ programs in a powershell,</p>
</blockquote>
<p dir="auto">Maybe now we’re getting somewhere…?</p>
<blockquote>
<p dir="auto">I have no idea how to do that</p>
</blockquote>
<p dir="auto">To do what?<br />
Didn’t dinkumoil show you, whatever it is/was?</p>
<blockquote>
<p dir="auto">and what to do with the script that was made.</p>
</blockquote>
<p dir="auto">Then why do you think the script example helps you?</p>
<blockquote>
<p dir="auto">Could somebody help?</p>
</blockquote>
<p dir="auto">Probably not, unless you give some sort of detail…about ANYTHING!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/52609</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/52609</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 14 Apr 2020 23:08:24 GMT</pubDate></item></channel></rss>