赞
踩
@echo off
rem start "" cmd /c call b.bat
rem ""是一段字符串,代表新打开的cmd窗口的名字,可以随便起名。
rem /k是表示新打开的cmd窗口在执行完命令后保存打开状态,如果希望执行完就关闭窗口就使用/c
rem call b.bat表示call命令,即调用b.bat文件;该命令可以用""括起来,即:"call b.bat"
::所有bat文件都在同一个文件夹下,不用进行路径跳转,可以使用“::”注释“cd /d ...” 这一行。
::如果批处理的.bat单独存在,该文件只用修改路劲即可“cd /d bat存放的文件夹路径”。
::=========================StartInfluxService.bat=========================
echo now run the StartInfluxService.bat ...
cd /d C:\Users\Administrator\Desktop\QuickStart
start "StartInfluxService" cmd /k call StartInfluxService.bat
::等待5秒
start /min /w mshta vbscript:setTimeout("window.close()",5000)
::=========================Start-eureka=========================
echo now run the 【1】Start-eureka.bat ...
cd /d C:\Users\Administrator\Desktop\QuickStart
start "【1】Start-eureka" cmd /k call 【1】Start-eureka.bat
::等待5秒
start /min /w mshta vbscript:setTimeout("window.close()",5000)
::=========================Start-information=========================
echo now run the 【2】Start-information.bat ...
cd /d C:\Users\Administrator\Desktop\QuickStart
start "【2】Start-information" cmd /k call 【2】Start-information.bat
::等待5秒
start /min /w mshta vbscript:setTimeout("window.close()",5000)
::=========================Start-optimization=========================
echo now run the 【3】Start-optimization.bat ...
cd /d C:\Users\Administrator\Desktop\QuickStart
start "【3】Start-optimization" cmd /k call 【3】Start-optimization.bat
::等待5秒
start /min /w mshta vbscript:setTimeout("window.close()",5000)
::=========================Start-schedule=========================
echo now run the 【4】Start-schedule.bat ...
cd /d C:\Users\Administrator\Desktop\QuickStart
start "【4】Start-schedule" cmd /k call 【4】Start-schedule.bat
::等待5秒
start /min /w mshta vbscript:setTimeout("window.close()",5000)
::=========================Start-zuul=========================
echo now run the 【5】Start-zuul.bat ...
cd /d C:\Users\Administrator\Desktop\QuickStart
start "【5】Start-zuul" cmd /k call 【5】Start-zuul.bat
::等待5秒
start /min /w mshta vbscript:setTimeout("window.close()",5000)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。