help with executing a script via command line

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kthulsidoss
    Visitor
    • Oct 2018
    • 3

    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
  • Aaron
    Team Scooter
    • Oct 2007
    • 16009

    #2
    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 [email protected] including a link back to this forum thread for our reference.
    Aaron P Scooter Software

    Comment

    • kthulsidoss
      Visitor
      • Oct 2018
      • 3

      #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

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 16009

        #4
        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

        Comment

        Working...