PDA

View Full Version : Command line compiler /R switch not working



ccordes
09-16-2019, 10:41 AM
I feel like I must be missing something very basic.
I have a project that has 9 different releases that need to be recompiled whenever things change. I'd like to be able to use the /C & /R switches to run them from a batch file.

After failing on Saturday and realizing this morning that the SB10 command line needs to be run from the same directory as SB10 and that it doesn't like long path names (or maybe just without spaces), I've come to expect that there are certain conditions that need to be met when using this feature.

This works and compiles the last release listed in the Releases list. -
sb10.exe /C "C:\sbtests\pcgarwV9_2019_noCopier_WebInstall.sbp"

This line does the same thing - compiles the last release displayed; not the one in the /R :( -
sb10.exe /C "C:\sbtests\pcgarwV9_2019_noCopier_WebInstall.sbp" /R="Manufacturers_Demo"


Can anyone see what I'm missing? I would really like to use this since these installations take a longish time to run.

Thanks!
Chris C

linder
09-17-2019, 04:57 AM
Hi Chris,

no need to run the command line compiler from the same directory as SB10. You can use fully-qualified path names (including long filenames) without any problem.

Not sure if it is a typo in your above text. You have /R="Release" but it should be /R "Release"

"C:\yada yada\SB10.EXE" /C "C:\yada yada\yada.sbp" /R "Release"

Friedrich

ccordes
09-17-2019, 06:35 PM
Thanks, Friedrich!
I was more than ready to argue knowing that I had tried 'everything'. I must not have tried the _right_ thing. ;))
... and I have it running from another directory as well.
Running from the SB10 directory did make it run, but I can't say why. Today I deleted what I was doing and just wrote it (as I thought I had but without the /R= ) and it is working.
Thanks again,
Chris C