ActiveState Powered by ActiveState

ActiveState Community


spawn of vcbuild fails

Posted by deniseshoup on 2008-03-06 12:01

I am trying to fire off a build from my script. When I use:

exp_spawn "vcbuild.exe /rebuild \"C:\\folder name\\project.sln\" \$ALL"

I just get "They system cannot find the file specified". I have also tried:

exp_spawn -open [open "|vcbuild.exe /rebuild \"C:\\folder\\project.sln\" \$ALL" w+]

and then when I run I see the first couple of lines of output from the build command:

Microsoft (R) Visual C++ Project Builder - Command Line Version 8.00.50727
Copyright (C) Microsoft Corp 1993-2003. All rights reserved.

but nothing else, and my expect statement that is looking for "build complete" and then "0 projects failed" ends with eof instead. I have printed out the build command and I can cut and paste it to a command line and get a successful build...are the parameters not getting passed correctly? I don't see the usual "Usage:" output that I would get if I try to just run vcbuild with no parameters...

Any help you can offer would be much appreciated.

Thanks,
Denise

deniseshoup | Fri, 2008-03-07 10:12

OK, now I am getting "The directory name is invalid." from the vcbuild before the eof.

-->