中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-17 11:24
47,813 topics / 349,904 posts / today 1 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » Help: The batch file automatically closes the window after execution
Printable Version  1,568 / 3
Floor1 liu999 Posted 2005-08-12 19:01
新手上路 Posts 2 Credits 5
RT
I searched a lot but didn't succeed. I don't know which command it is, I'm on Xp.
Floor2 willsort Posted 2005-08-12 20:10
元老会员 Posts 1,512 Credits 4,432
Re liu999:

Under normal conditions of XP, after a batch processing is executed, its window will automatically close; unless a PAUSE command or similar pause program is inserted in the executed batch processing, or there may also be special settings in the system.

If PAUSE or similar programs are not found in the batch processing, you can try the following method: change the extension of the batch processing from.bat to.com, right-click the modified program, delete the.com extension in "Properties - Program - Command Line", then confirm and check "Close on exit" below, then click OK, then change the.com extension back to.bat, and finally execute the newly generated DOS shortcut to test the running result.
Floor3 xy2fengye Posted 2005-08-12 22:26
初级用户 Posts 23 Credits 55
Can I add the exit command after the program? I wonder if it can work in XP.
Floor4 liu999 Posted 2005-08-13 11:56
新手上路 Posts 2 Credits 5
Reply to the moderator, today when I powered on and re-read, it actually got better after the test. I'm puzzled, thanks!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023