i want to edit a bat file where i set a certain systems variables, in or开发者_开发百科der to close the dos after the modification is done.
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
Could you try the command
exit
This should close the dos/command window.
精彩评论