Community
    • Login

    Compare 2 files using Command Line (CMD)

    Scheduled Pinned Locked Moved General Discussion
    6 Posts 3 Posters 3.3k 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.
    • Nando LopezN
      Nando Lopez
      last edited by

      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)

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE
        Ekopalypse @Nando Lopez
        last edited by

        @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
        • pnedevP
          pnedev
          last edited by

          @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
          • Nando LopezN
            Nando Lopez
            last edited by

            This post is deleted!
            EkopalypseE 1 Reply Last reply Reply Quote 0
            • EkopalypseE
              Ekopalypse @Nando Lopez
              last edited by Ekopalypse

              @Nando-Lopez

              you need to have the ComparePlus plugin installed.

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

              1 Reply Last reply Reply Quote 3
              • Nando LopezN
                Nando Lopez
                last edited by

                Thanks! @Ekopalypse now it works properly!

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