文件名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文件即可