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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
ASKER