window下批处理操作:bat文件中调用.bat和.exe文件

文件名test.bat

创新互联公司专注于贺兰网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供贺兰营销型网站建设,贺兰网站制作、贺兰网页设计、贺兰网站官网定制、小程序开发服务,打造贺兰网络公司原创品牌,更为您提供贺兰网站排名全网营销落地服务。

rem 启动GTRManager.exe
start cmd /k "D:\GTRManager_old\GTRECM\GTRManager.exe"
ping 127.0.0.1 -n 10 
rem 启动start.bat
D:
cd D:\v2r3c06spc100_spe_hutaf\HutafAgent
start cmd /k "" call start.bat
ping 127.0.0.1 -n 10 
rem 启动agentWatcher.bat
D:
cd D:\SCG_CI_Agent\agent
start cmd /k "" call agentWatcher.bat
ping 127.0.0.1 -n 10 
rem 启动RemoteE.exe"
start cmd /k "D:\cote\app\RemoteE.exe"
pause

上述代码实现了,在批处理文件中调用.bat和.exe文件,并且显示新的.bat文件的执行窗口

若不需要显示新的.bat文件的执行窗口,则执行call xxx.bat文件即可


文章名称:window下批处理操作:bat文件中调用.bat和.exe文件
转载源于:http://scyanting.com/article/gdjpdc.html