Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2010
    Posts
    1

    Question Creating unified diff files completely from command line

    Hi,

    I am looking for a command line tool that would take two paths to text files as input and output a file in the unified diff format (On Windows).

    Can I use Beyond Compare do that?

    Thanks,

    Senf

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,376

    Default

    Hello senf,

    Yes, this would be done with BC Script.

    For example, a BC Script call can use variables on the command line call: bcompare.exe @script.txt variable1 variable2 variable3
    You could call bcompare.exe @"c:\myscript.txt" "c:\file1.txt" "c:\file2.txt" "c:\output.txt"

    The script would then contain:
    Code:
    text-report layout:patch options:patch-unified output-to:%3 %1 %2
    You can generate the report using our graphical interface first, to see if it is the style you want, by opening a Text Compare session, loading your two files, then go to the Session menu -> Text Comparison Report.

    Our trial is fully featured and can be used to test this before purchase:
    http://www.scootersoftware.com/download.php
    Aaron P Scooter Software

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •