exit /B 0 does not work

后端 未结 3 1818
有刺的猬
有刺的猬 2020-12-19 06:24

I have the following problem:

I have created a batch script which calls itself in there (for being able to write a log in parallel). In the script I start another pr

3条回答
  •  伪装坚强ぢ
    2020-12-19 06:45

    I guess your problem lies within the start command. The following excerpt from the start /? help might point to the issue:

    command/program

    If it is an internal cmd command or a batch file then the command processor is run with the /K switch to cmd.exe. This means that the window will remain after the command has been run.

    If it is not an internal cmd command or batch file then it is a program and will run as either a windowed application or a console application.

    As a solution you could try to modify the start command like this:

    start "" cmd /c "startServer.bat"
    

提交回复
热议问题