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