<?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[Run Compare v2 in cmd]]></title><description><![CDATA[<p dir="auto">I am trying to run a comparison of two files from the command line.<br />
The command I have researched online is Notepad++\plugins\ComparePlugin\compare.exe file1 file2</p>
<p dir="auto">I navigate to Notepad++\plugins\ComparePlugin but there is no compare.exe file. I only see git2.dll and sqlite3.dll</p>
<p dir="auto">In the plugins directory there is a ComparePlugin.dll file but no .exe file. I tried reinstalling the Compare plugin but still no .exe file.</p>
<p dir="auto">Does anyone know how I can run the compare from the command line without the .exe?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21298/run-compare-v2-in-cmd</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 15:43:11 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21298.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Jun 2021 20:12:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Run Compare v2 in cmd on Wed, 15 Dec 2021 01:31:08 GMT]]></title><description><![CDATA[<p dir="auto">Has there been any update in this? I too and trying to script compares for my clients but the compare.exe is still missing. Is there an effort to get the program back in the new release?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72112</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72112</guid><dc:creator><![CDATA[bobbywaz]]></dc:creator><pubDate>Wed, 15 Dec 2021 01:31:08 GMT</pubDate></item><item><title><![CDATA[Reply to Run Compare v2 in cmd on Wed, 09 Jun 2021 08:16:13 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/22203">@eric-castilleja</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@peterjones</a> and <strong>All</strong>,</p>
<p dir="auto">The <strong>diff-wiever</strong> <strong><code>compare.exe</code></strong> exists in the <strong>old</strong> <strong><code>ComparePlugin.v1.5.6.6.bin.zip</code></strong> archive and, probably, in the <strong><code>v1.5.6.7</code></strong>  version, too !</p>
<p dir="auto"><strong>Unfortunately</strong>, this program is <strong>absent</strong> in all <strong>further</strong> releases of the <strong><code>ComparePlugin</code></strong></p>
<hr />
<p dir="auto">So here is the <strong>road map</strong> :</p>
<ul>
<li>
<p dir="auto"><strong>1</strong>) With the <strong><code>Plugin Admin</code></strong>, install the <strong>last</strong> <strong><code>v2.0.1</code></strong> release of the <strong><code>comparePlugin</code></strong>. ( You may also install it, <strong>manually</strong>, from that <a href="https://github.com/pnedev/compare-plugin/releases/tag/v2.0.1" rel="nofollow ugc">link</a></p>
</li>
<li>
<p dir="auto"><strong>2)</strong> Now, download the <strong>old</strong> <strong><code>1.5.6.6.</code></strong> version of the <strong>Compare</strong> plugin, from :</p>
</li>
</ul>
<p dir="auto"><a href="https://bitbucket.org/uph0/compare/downloads/ComparePlugin.v1.5.6.6.bin.zip" rel="nofollow ugc">https://bitbucket.org/uph0/compare/downloads/ComparePlugin.v1.5.6.6.bin.zip</a></p>
<ul>
<li>
<p dir="auto"><strong>3)</strong> From the <strong><code>ComparePlugin</code></strong> folder of that <strong>archive</strong>, extract the <strong>two</strong> files, <strong><code>compare.exe</code></strong> and <strong><code>compare.ini</code></strong>, <strong>only</strong> :</p>
<ul>
<li>
<p dir="auto">In the folder <strong><code>%AppData%\Notepad++\plugins\ComparePlugin\ComparePlugin</code></strong>, along with the <strong>two</strong> libraries <strong><code>git2.dll</code></strong> and <strong><code>sqlite3.dll</code></strong>, if you previously installed <strong>Notepad++</strong>, with the <strong>Installer</strong></p>
</li>
<li>
<p dir="auto">In folder <strong><code>&lt;N++ installation&gt; folder\plugins\ComparePlugin\ComparePlugin</code></strong>, along with the <strong>two</strong> libraries <strong><code>git2.dll</code></strong> and <strong><code>sqlite3.dll</code></strong>, if your installation of N++ was a <strong>local</strong> installation, from a <strong><code>7z</code></strong> or <strong><code>zip</code></strong> archive, in <strong>any</strong> folder</p>
</li>
</ul>
</li>
<li>
<p dir="auto"><strong>4)</strong> <strong>Only</strong> in case of a <strong>local</strong> installation of Notepad++, you must <strong>configure</strong> the <strong><code>compare.ini</code></strong> file, by adding, in the <strong><code>[Notepad]</code></strong> <strong>section</strong>, the line :</p>
</li>
</ul>
<pre><code class="language-diff">path=&lt;ABSOLUTE path of Notepad++&gt;\notepad++.exe
</code></pre>
<p dir="auto"><strong>Notes</strong> :</p>
<p dir="auto">The <strong>environment</strong> variables, as, for instance, <strong><code>%PROGRAMFILES(X86)%</code></strong> or <strong><code>%USERPROFILE%</code></strong> and/or the <strong>special</strong> directories <strong><code>.</code></strong> and <strong><code>..</code></strong> can be used to constitute the <strong>absolute</strong> path of N++, needed in the <strong><code>compare.ini</code></strong> file ( <strong>NO</strong> need to <strong>surround</strong> all the path, with <strong>single</strong> or <strong>double</strong> quotes, if your path contains <strong>spaces</strong> )</p>
<p dir="auto"><strong>Remark</strong> :</p>
<p dir="auto">In case of a <strong>local</strong> N++ installation, the <strong>two</strong> files <strong><code>compare.exe</code></strong> and <strong><code>compare.ini</code></strong> can be placed <strong>anywhere</strong>, as soon as they are, <strong>both</strong>, in the <strong>same</strong> folder ! ( Just remember that <strong>absolute</strong> path, for further use, of course ! )</p>
<ul>
<li>
<p dir="auto"><strong>5)</strong> Now, <strong>close</strong> any running <strong>instance</strong> of Notepad++</p>
</li>
<li>
<p dir="auto"><strong>6)</strong> Then, from the <strong>“Start”</strong> menu, run a <strong><code>cmd</code></strong> command</p>
</li>
<li>
<p dir="auto"><strong>7)</strong> Inside the <strong>DOS</strong> console window, <strong>whatever</strong> the <strong>current</strong> directory, type the command :</p>
</li>
</ul>
<pre><code class="language-diff">&lt;ABSOLUTE path of compare.exe\compare.exe ABSOLUTE or RELATIVE path\File_A ABSOLUTE or RELATIVE path\File_B
</code></pre>
<p dir="auto">with a <strong>space</strong> character after the expressions <strong>compare.exe</strong> and <strong>File_A</strong></p>
<p dir="auto">=&gt; Your <strong>current</strong> Notepad++ should start, soon, with, <strong>only</strong>, the <strong>two</strong> <strong><code>File_A</code></strong> and <strong><code>File_B</code></strong> files, <strong>already</strong> compared  ;-))</p>
<hr />
<p dir="auto">For instance, with my <strong>local</strong> N++ <strong><code>7.9.2</code></strong> configuration :</p>
<ul>
<li>
<p dir="auto">The <strong><code>compare.exe</code></strong> and <strong><code>compare.ini</code></strong> files are, <strong>both</strong>, in the <strong><code>D:\@@</code></strong> folder</p>
</li>
<li>
<p dir="auto">The <strong><code>compare.ini</code></strong> file contains the <strong>active</strong> line <strong><code>path=D:\@@\792\notepad++.exe</code></strong>, within the <strong><code>[notepad]</code></strong> <strong>section</strong></p>
</li>
<li>
<p dir="auto"><strong>All</strong> files and sub-folders, of my <strong>local</strong> N++ installation, are in folder <strong><code>D:\@@\792</code></strong></p>
</li>
<li>
<p dir="auto">After starting a <strong><code>cmd </code></strong> command and a <strong><code>cd /d D:\@@\792</code></strong> command</p>
</li>
<li>
<p dir="auto">I just typed the command <strong><code>D:\@@\compare.exe license.txt license_2.txt</code></strong> where <strong><code>license_2.txt</code></strong> is a <strong>copy</strong> of <strong><code>license.txt</code></strong>, <strong>slightly</strong> modified</p>
</li>
</ul>
<p dir="auto">=&gt; Notepad++ <strong><code>v7.9.2</code></strong> started with the <strong>two</strong> files opened in <strong>each</strong> view, and the <strong>comparison</strong> process terminated ;-)) Just as you would have run the command <strong><code>notepad++ -nosession license.txt license_2.txt</code></strong> with, in addition, the <strong>comparison</strong> process already <strong>launched</strong> !</p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">When using <strong><code>compare.exe</code></strong>, <strong>remember</strong> to indicate, in the <strong><code>DOS</code></strong> command, its <strong>absolute</strong> path !</p>
</li>
<li>
<p dir="auto">Of course, the location of <strong>two</strong> compared files can be completely <strong>independent</strong></p>
</li>
<li>
<p dir="auto">If a <strong>path</strong> of the files to compare ( <em>absolute</em> or <em>relative</em> ) contains <strong>spaces</strong>, just surround it with <strong>double quotes</strong></p>
</li>
<li>
<p dir="auto">I used the <strong><code>v7.9.2</code></strong> release for <strong>tests</strong> but this method should work with <strong>later</strong> versions !</p>
</li>
</ul>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">This post is an <strong>update</strong> of this <a href="https://community.notepad-plus-plus.org/topic/16056/how-to-get-an-external-diff-viewer-with-n-and-the-last-compare-plugin-v2-0-0-0">old</a> post</p>
<p dir="auto">Moreover, you might be <strong>interested</strong> in the <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7192">@dinkumoil</a>’s <strong>solution</strong>, too, which comes <strong>next</strong> !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66888</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66888</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 09 Jun 2021 08:16:13 GMT</pubDate></item><item><title><![CDATA[Reply to Run Compare v2 in cmd on Tue, 08 Jun 2021 20:27:07 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the info. I’ll look into the scripting solution</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66881</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66881</guid><dc:creator><![CDATA[Eric Castilleja]]></dc:creator><pubDate>Tue, 08 Jun 2021 20:27:07 GMT</pubDate></item><item><title><![CDATA[Reply to Run Compare v2 in cmd on Tue, 08 Jun 2021 20:21:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/22203">@Eric-Castilleja</a> ,</p>
<p dir="auto">Compare Plugin stopped distributing the compare.exe at some point.  And there is no built-in way of running specific features of a plugin from the command line – unless the plugin has made use of Notepad++'s <code>-z</code> feature… but ComparePlugin has not (at some point, one of you who is looking for compare-starting-from-command-line should make a request in the Compare Plugin <a href="https://github.com/pnedev/compare-plugin/issues" rel="nofollow ugc">issues/feature-request page</a> ).</p>
<p dir="auto">However, <a href="/topic/21149">last month’s conversation on a similar request</a> has some pointers for how to get started making a PythonScript solution to parse the Notepad++ <code>-z</code> feature, after which the PythonScript could start the ComparePlugin comparison on the two files.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/66880</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/66880</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 08 Jun 2021 20:21:49 GMT</pubDate></item></channel></rss>