I have a bat file in which I call a couple of bat command sequentially:
start cmd /c a.bat
call b.bat
The 1st line will run a.bat in a new prompt window, after the 2nd line finish run, I want to go back to the window started from 1st line and close it, how can I achieve that? I need to start a.bat in a different window, since b.bat rely on it to run, I have tried
call a.bat
call b.bat
but it never starts b.bat since a.bat starts a server and just wait. Any advice would be appreciated.
Use this and inside a.bat
start the server with start "" "c:\\program files\\folder\\server.exe"
so it will launch and return control to the a.bat
and continue.
call a.bat
call b.bat
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.