0

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"

  • The path does exists

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"

Raymond Chen
  • 44,448
  • 11
  • 96
  • 135
Patrick Lorio
  • 5,520
  • 11
  • 45
  • 74

1 Answers1

1

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.

Joey
  • 344,408
  • 85
  • 689
  • 683
  • I am doing it in TeamCity and it response with the error on input : "Invalid command executable specified" Do you know any other way? – Patrick Lorio Oct 11 '11 at 16:09
  • If you have to give the path to an executable and its arguments in separate fields, then you should probably leave out the quotes again. – Joey Oct 11 '11 at 16:11
  • I ended up going to system settings and adding it as a environment variable. – Patrick Lorio Oct 11 '11 at 17:10