Reputation: 580
i want to edit a bat file where i set a certain systems variables, in order to close the dos after the modification is done.
Upvotes: 0
Views: 1541
Reputation: 29669
How about this, which has a few ideas in it...
TITLE My batch file
:: content here
GOTO :END
:END
FOR /l %%a in (30,-1,1) do (TITLE %TITLE% -- Closing in %%as&ping -n 2 -w 1 127.0.0.1>NUL)
:: then, explicit exit (not required)
exit /B 1 >nul
Upvotes: 1
Reputation: 3250
Could you try the command
exit
This should close the dos/command window.
Upvotes: 1