文件名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文件即可
原创文章,作者:kepupublish,如若转载,请注明出处:https://blog.ytso.com/tech/opensource/193468.html