开发者

bat file: command dos to exit dos after executing 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜