开发者

bat file: command dos to exit dos after executing it

开发者 https://www.devze.com 2023-02-22 17:52 出处:网络
i want to edit a bat file where i set a certain systems variables, in or开发者_开发百科der toclose the dos after the modification is done.How about this, which has a few ideas in it...

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消