• Login
Community
  • Login

Compare 2 files using Command Line (CMD)

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 3.9k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    Nando Lopez
    last edited by Apr 15, 2024, 9:21 AM

    Hello,

    I want to compare 2 files using command line (CMD), but I didn’t found any documentation regarding that with the current version of Notepad++.

    On old versions the plugin had an executable, but now is included in the core and the command is different.

    Any idea of how do it?
    Thanks in advance

    Notepad++ v8.4.8 (64-bit)
    Build time : Dec 24 2022 - 19:40:27
    Path : C:\Program Files\Notepad++\notepad++.exe
    Command Line :
    Admin mode : OFF
    Local Conf mode : OFF
    Cloud Config : OFF
    OS Name : Windows 10 Enterprise (64-bit)
    OS Version : 22H2
    OS Build : 19045.4170
    Current ANSI codepage : 1252
    Plugins :
    AutoSave (1.6.1)
    CodeAlignmentNpp (14.1.107)
    ComparePlugin (2.0.2)
    Explorer (1.8.2.17)
    HexEditor (0.9.12)
    mimeTools (2.7)
    NppConverter (4.4)
    nppcrypt (1.0.1.6)
    NppExport (0.4)
    NppFTP (0.29.9)
    NppMarkdownPanel (0.6.1)
    NppRegExTractorPlugin (2.1)
    NppXmlTreeviewPlugin (2)
    PreviewHTML (1.3.2)
    RunMe (1.4.1)
    XMLTools (3.1.1.13)

    E 1 Reply Last reply Apr 15, 2024, 10:46 AM Reply Quote 0
    • E
      Ekopalypse @Nando Lopez
      last edited by Apr 15, 2024, 10:46 AM

      @Nando-Lopez

      ComparePlus can afaik be used with parameters from the command line, e.g. notepad++ -pluginMessage="compare" a.txt b.txt.

      1 Reply Last reply Reply Quote 1
      • P
        pnedev
        last edited by Apr 15, 2024, 11:47 AM

        @Nando-Lopez ,

        As @Ekopalypse pointed in his post the new ComparePlus plugin can start comparison from the command line. The command to do so is:
        notepad++ -pluginMessage=compare new_file.txt old_file.txt - there should be no quotes around ‘compare’ word.

        1 Reply Last reply Reply Quote 5
        • N
          Nando Lopez
          last edited by Apr 16, 2024, 5:37 AM

          This post is deleted!
          E 1 Reply Last reply Apr 16, 2024, 6:40 AM Reply Quote 0
          • E
            Ekopalypse @Nando Lopez
            last edited by Ekopalypse Apr 16, 2024, 6:42 AM Apr 16, 2024, 6:40 AM

            @Nando-Lopez

            you need to have the ComparePlus plugin installed.

            d781acc0-32cd-409d-ac08-76dfd71b0768-image.png

            1 Reply Last reply Reply Quote 3
            • N
              Nando Lopez
              last edited by Apr 16, 2024, 7:36 AM

              Thanks! @Ekopalypse now it works properly!

              1 Reply Last reply Reply Quote 1
              3 out of 6
              • First post
                3/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors