![]() |
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-16 01:49 |
47,813 topics / 349,903 posts / today 1 new / 48,258 members |
| DOS疑难解答 & 问题讨论 (解答室) » [Help] Problem running batch files under Win98! (Moderator, save me) |
| Printable Version 852 / 6 |
| Floor1 萧十一郎 | Posted 2003-08-12 00:00 |
| 初级用户 Posts 1 Credits 103 | |
|
My computer's operating system is Win98 Second Edition. When I run a batch file, after it finishes, the system will not automatically close the run window (there is an exit command line, I wouldn't forget even that!). Question for all the experts: is there any way to solve this problem?
|
|
| Floor2 Roy | Posted 2003-08-12 00:00 |
| 管理员 Posts 1,633 Credits 4,869 | |
|
Set the batch file's properties.
|
|
| Floor3 whatsmore | Posted 2003-08-13 00:00 |
| 初级用户 Posts 25 Credits 188 | |
|
Add cls at the end of the batch file.
|
|
| Floor4 斑马王子 | Posted 2003-08-13 00:00 |
| 初级用户 Posts 17 Credits 163 | |
The following is quoted from whatsmore's post on 2003-8-13 18:16:16: How could adding cls possibly work? Isn't cls the command to clear the screen? I thought maybe my line of thinking was wrong, but I tried it and it didn't work. |
|
| Floor5 whatsmore | Posted 2003-08-14 00:00 |
| 初级用户 Posts 25 Credits 188 | |
|
It works here for me.
What that means is, if after the batch file finishes the screen is blank, the system thinks you didn't write anything to the screen, so it can close automatically. If after it finishes the screen isn't blank, the system leaves the finished screen there for you to look at. Oh right, you also have to delete that .pif. If what you want is to type xxx.bat at the command prompt and have it close that window too after it finishes, then I don't know. |
|
| Floor6 llfz | Posted 2003-08-16 00:00 |
| 初级用户 Posts 35 Credits 263 | |
|
Create a shortcut for your bat file, that is, a .pif file. Right-click that shortcut, choose Properties -- Program, and check Close on exit. That will solve your problem.
|
|
| Floor7 200216 | Posted 2003-08-20 00:00 |
| 初级用户 Posts 10 Credits 150 | |
|
Add "end" at the end.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |