获取-编译-打包 VS作业一条龙批处理

Posted on 2010-01-29 10:32  Leon0812  阅读(250)  评论(0编辑  收藏  举报

PATH=C:\Program Files\Microsoft Visual SourceSafe
mkdir Ehrs-2008
cd Ehrs-2008
set ssdir=D:\EHRSKPI
set ssuser=X5044
set sspwd=X5044
ss  get  $/* -R -i-

rmdir /s/q Publish
mkdir Publish
del build.txt
PATH=D:\VS2008\Common7\Tools
Call Vsvars32.bat
Devenv EHRSKPI.sln /build release /out  build.txt

set AspCompilerPath=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
%AspCompilerPath%\Aspnet_compiler.exe -v /xx -p  WEB -f -fixednames Publish\IISRootFolder\Ehrsnet 

rmdir /s/q Publish\IISRootFolder\Ehrsnet\App_Data
copy WEB\Source\KPI\Reports Publish\IISRootFolder\Ehrsnet\Source\KPI\Reports /Y
copy WEB\RPT Publish\IISRootFolder\Ehrsnet\RPT /Y
copy D:\VCD\EhrsnetV940\Update.exe Publish

cd Publish
@echo set proName=KPI%date:~0,4%-%date:~5,2%-%date:~8,2%
set proName=EhrsV940.rar
PATH=C:\Program Files\WinRAR
WinRar a ..\%proName%  *.* -r

copy  ..\%proName%  D:\VCD /Y

Copyright © 2024 Leon0812
Powered by .NET 9.0 on Kubernetes