PDA

View Full Version : Issues with spaces in output directory name?


dbrannick
23-Nov-2009, 01:54 PM
I have a procedure that I'm trying to run and I'm getting an error:
This is the output of the script I'm running. It appears that there is an issue with a space in the directory name or a length issue?
Please advise.
thank you


11/23/2009 2:51:52 PM >> load "C:\SVN\Clients\VCI Solutions\OriginalCode-06-19-2009\PB-Exprots-06-19-09-w-pbt\" "C:\SVN\Clients\VCI Solutions\CodeDrop-10-19-09\trinity_drop_1_20091019\PB-Exports-20091019\"
11/23/2009 2:51:52 PM Load comparison: C:\SVN\Clients\VCI Solutions\OriginalCode-06-19-2009\PB-Exprots-06-19-09-w-pbt <-> C:\SVN\Clients\VCI Solutions\CodeDrop-10-19-09\trinity_drop_1_20091019\PB-Exports-20091019
11/23/2009 2:51:52 PM >> filter "-* 02.*;-.\.svn\;-.svn\"
11/23/2009 2:51:52 PM >> compare rules-based
11/23/2009 2:51:52 PM >> expand all
11/23/2009 2:51:53 PM >> select all
11/23/2009 2:51:53 PM >> file-report layout:summary options:ignore-unimportant,display-mismatches &
11/23/2009 2:51:53 PM >> title:"VCI Code Drop File Comparison" &
11/23/2009 2:51:53 PM >> output-to: "C:\SVN\Clients\VCI Solutions\CodeDrop-10-19-09\trinity_drop_1_20091019\ComparisonDirectory\VCI _File_Comparison_Summary.dat"
11/23/2009 2:51:53 PM Fatal Scripting Error: Unable to create report: Error Opening File
11/23/2009 2:51:55 PM Script completed in 2.84 seconds

If I run this script within my current directory (that has no spaces), it works successfully.

dbrannick
23-Nov-2009, 02:21 PM
I found the error. I had a space after the output-do: - I guess BC didn't like that.

Aaron
24-Nov-2009, 01:16 PM
Correct. And thanks for posting your solution.

BC Script considers whitespace and line breaks as important when defining script syntax. A space in the wrong place can cause errors such as you encountered.