Mike
Mike

Reputation: 3575

How to prevent command line window exist after executing one command?

In a Windows bat file:

mvn.bat install
java -jar build.jar
pause

The command line window exist after executing mvn.bat install, how to let it proceed with execution of remain commands?

Upvotes: 3

Views: 1261

Answers (1)

Jayamohan
Jayamohan

Reputation: 12924

I think your problem is that when you invoke mvn command you never go back to your script again.

Try using the call command e.g.:

call mvn install

This will invoke mvn install command and then return back to your script.

Upvotes: 9

Related Questions