I have a batch script that runs Angular e2e tests in parallel.
e2e tests will open new cmd. But after the tests are finished, cmd windows don't close.
I need to automatically close cmd windows after e2e tests are finished.
Here is the batch script:
@set /a "b=%a%+%1 – 1"
for /l %%x in (%a%, 1, %b%) do (
call ng e2e –no-webdriver-update –port %%x
If I add "exit" at the end, the cmd where this code runs will be automatically closed, but the cmds opened by this app does not close.