一个bat使用实例

@echo off
echo.&echo
@echo "open svn log......."

set svntool=C:\"Program Files"\TortoiseSVN\bin\TortoiseProc.exe /command:repobrowser /path:


:Start

@rem ####################################
@echo 选择分支:
@echo 100:trunk_1
@echo 101:trunk2
@echo 102:trunk_3
@echo 103: eagle
@echo 104: 5.3.12_OTS
@echo 105: 5.3.13_R7_HIK185
@echo 106: 5.3.14_E2_IPDOME
echo.
echo.

@rem ####################################
@echo 选择软件:
@echo 150:SADP 
echo.
echo.
@rem ####################################

 

 

@rem ####################################
@echo.
set hcy=
set /p hcy= choose:

@rem ################### 文件目录管理 start #################
if %hcy%==100 goto trunk_1
if %hcy%==101 goto trunk2
if %hcy%==102 goto trunk_3
if %hcy%==103 goto eagle
if %hcy%==104 goto 5.3.12_OTS
if %hcy%==105 goto 5.3.13_R7_HIK185
if %hcy%==106 goto 5.3.14_E2_IPDOME
@rem ################### 文件目录管理 end #################

 

@rem ################### 软件管理 start #################
if %hcy%==150 goto SADP
@rem ################### 软件管理 end #################

echo 错误输入号%hcy%!
goto End

 


:SADP
@echo "SADP..."
start "" "C:\Program Files\SADPTool\SADPTool.exe"
@rem start http://www.baidu.com
@rem http://hikml.hikvision.com.cn/res/index.nsf/home/ZB/?open
goto End


:trunk_1
@echo "trunk......."
start /max X:\work\trunk\trunk_1
start /max X:\work\trunk\trunk_1\SI\trunk_1.PR 
@rem %svntool%"https://192.0.0.140/Camera/Platform/Trunk/frontend_software_platform"
goto End

:trunk2
@echo "trunk......."
start /max X:\work\trunk\trunk2
start /max X:\work\trunk\trunk2\SI\trunk2.PR
//%svntool%"https://192.0.0.140/Camera/Platform/Trunk/frontend_software_platform"
goto End

:trunk_3
@echo "trunk......."
start /max X:\work\trunk\trunk_3
//%svntool%"https://192.0.0.140/Camera/Platform/Trunk/frontend_software_platform"
goto End

:eagle
@echo "eagle......."
start /max X:\work\branch\IPD_for_eagle_eye\SI\IPD_for_eagle.PR
%svntool%"https://192.0.0.140/Camera/Platform/Branches/branches_frontend_software_platform/IPDome_develop_branch/IPD_for_eagle eye"
goto End

:5.3.12_OTS
@echo "5.3.12_OTS......."
start /max X:\work\pre\5.3.12_ots
start /max X:\work\pre\5.3.12_ots\SI\5.3.12_ots.PR
%svntool%"https://192.0.0.140/Camera/Platform/Branches/branches_frontend_software_platform/IPDome_develop_branch/frontend_software_platform_dome_5.3.12_OTS_Denoise_Big_Diaphragm"
goto End

:5.3.13_R7_HIK185
@echo "5.3.13_R7_HIK185......."
start /max X:\work\pre\5.3.13_R7_HIK185
start /max X:\work\pre\5.3.13_R7_HIK185\SI\5.3.13_R7_HIK185.PR
%svntool%"https://192.0.0.140/Camera/Platform/Branches/branches_frontend_software_platform/IPDome_develop_branch/ipd_tmp/5.3.13_R7_hik185"
goto End

:5.3.14_E2_IPDOME
@echo "5.3.14_E2_IPDOME......."
start /max X:\work\pre\frontend_software_cut_platform_dome_5.3.14_E2
start /max X:\work\pre\frontend_software_cut_platform_dome_5.3.14_E2\SI\5.3.14_E2.PR
%svntool%"https://192.0.0.140/Camera/Platform/Branches/branches_frontend_software_platform/IPDome_develop_branch/frontend_software_cut_platform_dome_5.3.14_E2"
goto End
:End
pause
goto Start
exit

 

 

备注:

@rem + 空格    进行注释,不回显,回显的话去掉@

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值