Menu

#126 command line save differences to .zip file

open
nobody
None
4
2022-06-27
2022-06-23
Jim Deblaey
No

Hello,

I am trying to run winmerge via a command line script but I need to save the differences to a 3rd folder location and save it as a zip file. it can be done in the GUI version of it, but I was wondering if there is an option to do that via the command line, I am trying to automate this task, and it would be great if I could compare 2 folders, find the differences (can already do this) and then save a zip file with the original and altered folders just like the GUI version.

please let me know if this is possible.

Thanks,
Jim

Discussion

  • Takashi Sawanaka

    Unfortunately, WinMerge does not have the ability to save to a Zip file from the command line.

     
  • Jim Deblaey

    Jim Deblaey - 2022-06-24

    Thank you for this information, is there a way I could generate a report or list of differences that i could say, save to a csv file?

     
    • Takashi Sawanaka

      You can output the results of the recursive folder comparison to a CSV file with the following command :

      "C:\Program Files\WinMerge\WinMergeU.exe" /r /noninteractive /cfg ReportType=0 /cfg DirViewExpandSubdirs=1 path1 path2 -or c:\tmp\report.csv
      
       
  • Jim Deblaey

    Jim Deblaey - 2022-06-24

    That is perfect! thanks!

     
  • Jim Deblaey

    Jim Deblaey - 2022-06-24

    ok one last question, is there a way to manipulate the report so it will not have the 2 line header on it? I would like it to have row 3 as row 1 so I can read from the csv in my script

     
    • Takashi Sawanaka

      Unfortunately, it is currently not possible not to output a two line header.

       
  • Jim Deblaey

    Jim Deblaey - 2022-06-27

    Just to make sure I understood the last comment, it is not possible to remove the top 2 lines from the report?

     
    • Takashi Sawanaka

      Currently, there is no option in WinMerge to remove the top two lines from the report.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.