No announcement yet.

help with executing a script via command line

  • Filter
  • Time
  • Show
Clear All
new posts

  • help with executing a script via command line


    Here is the script that i have stored in c:\ and here are the contents
    load "C:\DIR1" "C:\DIR2"
    expand all
    select all
    folder-report layout:side-by-side output-to "C:\Reporting\Results\comparision1.html" output-options:html-color

    i run this script from command line as

    C:\BeyondCompare2\BC.exe @C:\bcscript.txt and it throws an error
    as in correct parameters

    could you please help

  • #2

    The above script text has an error, missing ":" after output-to and an added space
    folder-report layout:side-by-side output-to:"C:\Reporting\Results\comparision1.html" output-options:html-color

    If there are still any issues, please provide the full log the script is presenting, along with the error text, and we can track down what issue it is running into. You can post here, or email to including a link back to this forum thread for our reference.
    Aaron P Scooter Software


    • #3
      Hi ,thanks it works !. So would it be possible to suppress the exe being shown from the command prompt , wanting it to be done silently. The use would be have them executed in a jenkins job .
      Thanks a Lot


      • #4

        You can add /silent:
        bcompare.exe "@c:\path\script.txt" /silent

        Just be aware that actions do not support Undo, script does not preview, and silent will suppress all dialogs including Error messages. It is strongly recommended to add:
        log verbose "c:\path\bclog%date%.txt" as the first line of your script so you can review what has happened during your script tasks.
        Aaron P Scooter Software