[windows bat] How to start a bat so that the current cmd window does not close

After executing the operation with the start command, the window where start is located will be automatically closed. How to start other bats without closing the initial cmd window?

The way is as follows:

Example 1

The contents of the startup script start.bat are as follows:

cmd /k "C\MyPath\TEST.BAT"

 

After running TEST.bat in this way, the cmd window where start.bat is located will not be automatically closed.

Reference: http://stackoverflow.com/questions/8807118/how-to-avoid-cmd-will-be-closed-after-a-batch-was-executed

 

Example 2:

start vcvarsall.bat

cmd /k "D:\Program Filesx86\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326802461&siteId=291194637
bat