第一次写带参数的bat

呵呵,工作了这么多年,还真没写过:)

这次尝试一下...

------------------------------------------------------------

功能:拷贝一些相关的文件,远程路径需要根据版本号来拼出。

if "%1"=="" goto NOBLDNUMBER
set BLDNUM=%1

SET TARGETROOT=d:/SD
if not "%2"=="" SET TARGETROOT=%2

set TARGETPATH=%TARGETROOT%/target/debug/i386

REM localAssemblies
REM MITA
set MITAFILES=%TARGETROOT%/private/cs/test/tools/ext/MITA/Latest/*.dll
copy /Y/D %MITAFILES% %TARGETPATH%

REM PiCASSO
set PICASSOFILES=%TARGETROOT%/private/cs/test/tools/ext/picasso/Latest/*.dll
copy /Y/D %PICASSOFILES% %TARGETPATH%

REM Remote dlls
set FULLBUILDNUM=6.0.%BLDNUM%.0
set ROPPATH=//ebizrel/home/release/goldeneye/x86/%FULLBUILDNUM%/EN/build/debug/commerce/test/UI/
set OrderUIHelperSource=%ROPPATH%ordersui/OrdersUIHelper/OrdersUIHelper.dll
set UIHelperSource=%ROPPATH%UIHelper/UIHelper.dll

copy /Y/D %OrderUIHelperSource% %TARGETPATH%
copy /Y/D %UIHelperSource% %TARGETPATH%

goto EXIT

:NOBLDNUMBER
echo [FAIL] no build number
pause

:EXIT

展开阅读全文

没有更多推荐了,返回首页