Solve the problem that the command line window opened after the .bat file is executed does not automatically close

For example, the .bat file we want to run is test.bat, and the content is as follows:


There are several ways:

(1) Create a new test2.bat file in the same directory as the .bat file to be run, with the following contents:

Then execute this file.

(2) Add the pause command to the .bat file to be executed, and then execute


(3) Add cmd, or cmd.exe command to the .bat file to be executed, and then execute



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324529942&siteId=291194637