windowscommandpromptvcbuild

Error building from the Windows Command Prompt via vcbuild


I am trying to execute vcbuild via the command prompt. Just using

vcbuild project.vcproj

doesn't work and I've tried using the whole path :

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\vcbuild.exe project.vcproj

That give the error : 'C:\Program' is not recognized as an internal or external command, ...

so I tried it with '

'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\vcbuild.exe' project.vcproj

That give the error "The system cannot find the path specified"

Thanks any help would be much appreciated.

NOTE : this is to be executed by TeamCity (CI Server) ++ for some reason using "" doesn't work, on input in TeamCity's command execution responds with : "Invalid command executable specified"


Solution

  • Use double quotes instead:

    "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcpackages\vcbuild.exe" project.vcproj
    

    Quoting in cmd is only possible with double quotes, regardless of what you may or may not be used to from Unix shells.