|
|
楼主 |
发表于 2014-2-25 15:40:32
|
显示全部楼层
回复 4# Batcher
----------------------- tbboot.bat 文件内容------------------------------
cd C:\Tibero\tibero5\bin
start tbboot.bat -w
timeout /t 10
taskkill /F /IM wscript.exe
timeout /t 5
tasklist | find /c "tbsvr.exe" >= 0
if %ERRORLEVEL% == 0 goto case1
if %ERRORLEVEL% == 1 goto case2
:case1
exit 0
:case2
start tbdown clean
timeout -t 5
start tbboot.bat -w
timeout /t 10
taskkill /F /IM wscript.exe
exit 0
---------------------------------------------------tbdown.bat 文件内容 -------------------------------------------
cd C:\Tibero\tibero5\bin
start tbdown.bat -w
timeout /t 10
taskkill /F /IM wscript.exe
timeout -t 3
tasklist | find /c "tbsvr.exe" >= 0
if %ERRORLEVEL% == 0 goto case1
if %ERRORLEVEL% == 1 goto case2
:case1
timeout /t 5
taskkill /f /im tbsvr.exe
exit 0
:case2
timeout /t 10
exit 0
-------------------------------------------------clean.bat -----------------------------------------
start C:\Tibero\tibero5\bin\tbdown clean
exit 0
以上3个文件能不能用if文件来使用?就像第一次回复的那样。。。
tbsvr.exe 和 tblistener.exe 中 tbsvr.exe 进程有问题
就判断为故障。
然后先执行tbdown clean 命令之后执行 tbboot.bat 命令
啊,麻烦您的,我的头都快要爆炸了 |
|