Announcement

Collapse
No announcement yet.

Command line script compares scripting file with another file instead of 2 CSVs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Command line script compares scripting file with another file instead of 2 CSVs

    Hi I am invoking BYC through java using below line : It opens BYC but compares script.txt to first csv in the argument instead of comparing 2 CSVs. Please help
    "BCompare.exe","\\@C:\\filepath\\BCscript.txt" ,"C:\\file1path\\reference.csv","C:\\file2path\\ex port.csv","C:\\reportpath\\My Report.csv"

    Scrpt file has:
    file-report layout:side-by-side &

    options:display-mismatches &

    output-to:%3 %1 %2

    Its should actually compare 2 CSVs and create report in My Report.csv

  • #2
    Hello,

    Instead of executing Bcompare.exe, please save the string and output for debugging. It sounds like your @ is stripped from code during your execution. The command line should be:
    "BCompare.exe" "@C:\filepath\BCscript.txt" "C:\file1path\reference.csv" "C:\file2path\ex port.csv" "C:\reportpath\My Report.txt"

    Report output defaults to plain text, which includes a header section and the side by side layout isn't formatted as csv.
    Aaron P Scooter Software

    Comment


    • #3
      Hi Aaron

      Thanks for your reply. Following things worked for me:
      "BCompare.exe","@C:\\filepath\\BCscript.txt" ,"C:\\file1path\\reference.csv","C:\\file2path\ \ex port.csv","C:\\reportpath\\My Report.csv"

      Comment

      Working...
      X