@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