VC 使用命令行编译

作者: 吴杰 分类: 编程 发布时间: 2010-08-07 15:06

VC 使用命令行编译,创建批处理命令如下:

@echo off

taskkill /f /im MyAssistant.exe
set path=D:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE;%Systemroot%;%systemroot%/system32;
set name=MyAssistant
set outname=MyAssistant.exe

devenv /Rebuild Release "MyAssistant.sln"  /project "MyAssistant.vcproj" /projectconfig Release
pause