<?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[Command window closes automatically]]></title><description><![CDATA[<p dir="auto">Hi, I’m having a problem using Freefem++ in Notepad++. The problem is that when I run my code, the command window opens and executes the code, but then closes automatically. If there’s an error or I want to see the result of a simple code, it won’t let me see it unless it has graphical output. I’ve been searching for a solution but haven’t found anything. Does anyone know a solution? I’m using the latest version of both Freefem++ and Notepad++.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26721/command-window-closes-automatically</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 14:29:12 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26721.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Mar 2025 19:14:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Command window closes automatically on Tue, 25 Mar 2025 21:36:56 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 just tried it and it works perfectly. Thanks again so much for the help.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100532</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100532</guid><dc:creator><![CDATA[Fernando Fernandez Escalante]]></dc:creator><pubDate>Tue, 25 Mar 2025 21:36:56 GMT</pubDate></item><item><title><![CDATA[Reply to Command window closes automatically on Tue, 25 Mar 2025 21:25:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fernando-fernandez-escalante" aria-label="Profile: Fernando-Fernandez-Escalante">@<bdi>Fernando-Fernandez-Escalante</bdi></a> said in <a href="/post/100524">Command window closes automatically</a>:</p>
<blockquote>
<p dir="auto">I don’t know if there’s a solution</p>
</blockquote>
<p dir="auto">Sorry, if you use a single <code>&amp;</code> instead of a double <code>&amp;&amp;</code>, it should do the pause no matter what – I should have checked which was which before I gave the answer.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100529</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100529</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 25 Mar 2025 21:25:48 GMT</pubDate></item><item><title><![CDATA[Reply to Command window closes automatically on Tue, 25 Mar 2025 20:33:42 GMT]]></title><description><![CDATA[<p dir="auto">Okay, I just saw that the problem with cmd /c REAL_COMMAND &amp;&amp; pause is that if the code has an error, it doesn’t reach the pause point and therefore closes automatically. I don’t know if there’s a solution, but I’m leaving it out in case anyone knows or has the same question.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100524</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100524</guid><dc:creator><![CDATA[Fernando Fernandez Escalante]]></dc:creator><pubDate>Tue, 25 Mar 2025 20:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to Command window closes automatically on Tue, 25 Mar 2025 19:55:35 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> Using cmd /k REAL_COMMAND was able to fix it. I also tried cmd /c REAL_COMMAND &amp;&amp; pause, but it didn’t work; I’m not entirely sure why. But I can now see the command window and close it manually. Thank you very much for everything.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100523</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100523</guid><dc:creator><![CDATA[Fernando Fernandez Escalante]]></dc:creator><pubDate>Tue, 25 Mar 2025 19:55:35 GMT</pubDate></item><item><title><![CDATA[Reply to Command window closes automatically on Tue, 25 Mar 2025 19:26:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fernando-fernandez-escalante" aria-label="Profile: Fernando-Fernandez-Escalante">@<bdi>Fernando-Fernandez-Escalante</bdi></a> ,</p>
<p dir="auto">When you use the <strong>Run &gt; Run…</strong>, it opens that command in a <code>cmd.exe</code> window.  <code>cmd.exe</code>’s default is to close the window when it’s done executing.  if you want it to stay, you could change Run = <code>REAL_COMMAND</code> to <code>cmd /k REAL_COMMAND</code> (where <code>REAL_COMMAND</code> is the full content of your original <strong>Run</strong>) – but you’d have to manually close that window yourself.  Or you could do something like <code>cmd /c REAL_COMMAND &amp;&amp; pause</code>, so it will run <code>REAL_COMMAND</code> and then pause with “Press any key to continue…” – and so you can look at the output before continuing.</p>
<p dir="auto">Example: <code>cmd /c echo hi &amp;&amp; pause</code><br />
<img src="/assets/uploads/files/1742930792462-3909664a-fd1a-4121-9a12-1913aa2b02a4-image.png" alt="3909664a-fd1a-4121-9a12-1913aa2b02a4-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1742930809674-686d590c-cc33-4d70-bb88-fbacc1ebbe92-image.png" alt="686d590c-cc33-4d70-bb88-fbacc1ebbe92-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Alternatively, instead of running from the <strong>Run &gt; Run</strong>, you could use a plugin like NppExec to run the program, which would put the results in its console window embedded in Notepad++, rather than in an external <code>cmd.exe</code> terminal</p>
]]></description><link>https://community.notepad-plus-plus.org/post/100520</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/100520</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 25 Mar 2025 19:26:52 GMT</pubDate></item></channel></rss>