乙個bat使用例項

2021-07-15 08:04:12 字數 2844 閱讀 1480

@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

@rem

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%""

goto end

:trunk2

@echo "trunk......."

start /max x:\work\trunk\trunk2

start /max x:\work\trunk\trunk2\si\trunk2.pr

//%svntool%""

goto end

:trunk_3

@echo "trunk......."

start /max x:\work\trunk\trunk_3

//%svntool%""

goto end

:eagle

@echo "eagle......."

start /max x:\work\branch\ipd_for_eagle_eye\si\ipd_for_eagle.pr

%svntool%" 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%""

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%""

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%""

goto end

:end

pause

goto start

exit

備註:@rem + 空格    進行注釋,不回顯,回顯的話去掉@

JsonDB的乙個使用例項

專案還提供了乙個使用的例項,在example.py中,下面我們把這個例子貼上出來,上面有詳細的注釋,可以看出使用起來還是挺簡單的 usr bin env python coding utf 8 from database import jsondb if name main shopdb jsond...

雙指標的乙個使用例項

什麼是雙指標?例如 char p p即為雙指標。當我們需要修改指標變數本身的值的時候,可以使用雙指標。先看乙個示例 voidgetmemory char ptr voidgetbuffer 示例想要修改buffer本身這個指標的值,但是getmemory buffer 之後,buffer的值還是nu...

簡單例項使用 乙個簡單例項了解vuex如何使用

什麼是vuex,vuex怎麼使用,什麼場景下適合使用vuex,vuex 文件中都有介紹。看完文件之後,都知道vuex的核心有state getter mutation action module,也都知道分別都是幹嘛的。但是實際到專案中可能就會出現不知道怎麼動手實際操作了。下面就通過乙個簡單例項來說...