I have the following script:
I execute this code using the command below:
However, I get an error. The log is below:
If I point the output destination to C:\SQL_Queries\Report.html, it works. So, how do I escape the space when passing the path in as a command line argument?
Thanks
Bashibashouks
Code:
file-report layout:side-by-side options:display-mismatches,line-numbers & title:%3 & output-to:%4 & output-options:wrap-word,html-color %1 %2
Code:
"C:\Program Files\Beyond Compare 3\BCompare.exe" "@C:\SQL Queries\BC_AutoScript_02012011.txt" C:\BCompare\File1.csv C:\BCompare\File2.csv WHAT_A_SURPRISE "C:\SQL Queries\Report.html"
2/1/2011 2:52:41 PM >> #log verbose "C:\SQL Queries\Log_Test.txt"
2/1/2011 2:52:41 PM >> file-report layout:side-by-side options:display-mismatches,line-numbers &
2/1/2011 2:52:41 PM >> title:WHAT_A_SURPRISE &
2/1/2011 2:52:41 PM >> output-to:C:\SQL Queries\Report.html &
2/1/2011 2:52:41 PM >> output-options:wrap-word,html-color &
2/1/2011 2:52:41 PM >> C:\BCompare\File1.csv C:\BCompare\File2.csv
2/1/2011 2:52:41 PM Fatal Scripting Error: Unexpected argument(s) "Queries\Report.html"
2/1/2011 2:52:42 PM Script completed in 1.53 seconds
2/1/2011 2:52:41 PM >> file-report layout:side-by-side options:display-mismatches,line-numbers &
2/1/2011 2:52:41 PM >> title:WHAT_A_SURPRISE &
2/1/2011 2:52:41 PM >> output-to:C:\SQL Queries\Report.html &
2/1/2011 2:52:41 PM >> output-options:wrap-word,html-color &
2/1/2011 2:52:41 PM >> C:\BCompare\File1.csv C:\BCompare\File2.csv
2/1/2011 2:52:41 PM Fatal Scripting Error: Unexpected argument(s) "Queries\Report.html"
2/1/2011 2:52:42 PM Script completed in 1.53 seconds
Thanks
Bashibashouks
Comment