vs auto build

本文详细介绍了如何使用批处理脚本实现5秒后自动后台编译,并配置了相关环境变量,确保编译过程顺利进行。同时,脚本还包含了清理输出文件、设置输出目录等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

@echo off
@echo 5秒钟后默认开始后台编译:
@ping 127.0.0.1 -n 5 1>nul 2>nul
@echo start

::this is the comment
%this is the comment%
rem this is the comment
echo this is the comment

set VSInstall_route=C:\Program Files (x86)\Microsoft Visual Studio 11.0
set System_route=C:\WINDOWS
set ProgramFile=C:\Program Files

rem 设置解决方案的路径
set Solution=”E:\work\osg\OpenSceneGraph-3.4.0\OpenSceneGraph.sln”
set OutPutDir=%Solution%..
set OutPutDebugInfo=%OutPutDir%\debugOutput.txt
set OutPutReleaseInfo=%OutPutDir%\releaseOutput.txt

rem 设置系统路径,该值是脚本执行期间临时的path
path=%path%;%VSInstall_route%\Common7\IDE;%System_route%\System32;%System_route% ;%System_route%\System32\wbem;%VSInstall_route%\Common7\bin;%VSInstall_route%\Common7\PlatformSDK\bin;%VSInstall_route%Common7\Tools\bin;%VSInstall_route%\Common7\tools;%ProgramFile%\HTML Help Workshop;%VSInstall_route%;%VSInstall_route%\SDK\v2.0\bin;%System_route%\SysWow64;

del %OutPutDebugInfo%
del %OutPutReleaseInfo%

@echo Build DeBug Start!!!
time /T >> %OutPutDebugInfo%
devenv %Solution% /build “Debug|Win32” /Out %OutPutDebugInfo%
time /T >> %OutPutDebugInfo%

rem 关机使用以下命令
rem %System_route%\system32\Shutdown.exe -s -f -t 30

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值