Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2018
    Posts
    2

    Default help with executing a script via command line

    Hi,

    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. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,949

    Default

    Hello,

    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 support@scootersoftware.com including a link back to this forum thread for our reference.
    Aaron P Scooter Software

  3. #3
    Join Date
    Oct 2018
    Posts
    2

    Default

    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. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,949

    Default

    Hello,

    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

Posting Permissions

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