Link to home
Start Free TrialLog in
Avatar of Michael Lam
Michael Lam

asked on

DOS start command

i want to run serveral mvn build commands sequentially.

cd..
start /wait mvn clean install -DskipTests
cd dbaccess
start /wait mvn clean
mvn integration-test

with start command i can do that, but it always open a new window, and i have to close the window before the next command runs.  also i have to tell DOS that i am not terminating the whole run when i close the window.  is there a way to:

1) call start without new window (i tried /b but it just stops after the first start command is done)
2) automatically continue to the next command without any manual actions on my part?

thanks.
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michael Lam
Michael Lam

ASKER

Could you explain more about the code?  For example, where does the mvn command go?
cd..
start /b /wait "" cmd /c mvn clean install -DskipTests ^& exit /b
cd dbaccess
start /b /wait "" cmd /c mvn clean ^& exit /b
mvn integration-test

Open in new window