Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2018
    Posts
    2

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

    Default

    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

  3. #3
    Join Date
    Aug 2018
    Posts
    2

    Default

    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"

Posting Permissions

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