0

VS .NET 2003 C++ console application.

I would like to make a batch file that runs in the VS command prompt to compile just as if compiling from the VS IDE build->rebuild solution to create the .exe

I noticed under project properties linker->command line and C\C++->command line commands listed to compile and link from the command line. So I tried copying that information into a batch and ran under the VS environment but didn't really work.

Any help is appreciated.

Thank You.

EDIT
sorry, in case I did not communicate properly. I would like this batch file to contain all the switches and list the .cpp files and objects to create, so that the VS project is not needed, just the environment.

Community
  • 1
  • 1
T.T.T.
  • 33,367
  • 47
  • 130
  • 168

1 Answers1

2

If you upgrade to 2005, you can use vcbuild. If you upgrade to 2010, you can use msbuild. For 2003, your only option is devenv /build.

David Schwartz
  • 179,497
  • 17
  • 214
  • 278