![]() |
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-13 01:38 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » [About batch file echo messages and popping-up DOS dialog boxes!?] |
| Printable Version 1,225 / 6 |
| Floor1 ajeef | Posted 2003-08-19 00:00 |
| 初级用户 Posts 14 Credits 167 | |
|
Two questions:
How can I prevent the DOS dialog box from popping up when running a batch file? @echo off can only hide the commands themselves, but it can't hide the echoed output messages. How can I stop it from echoing them? |
|
| Floor2 cn_archer | Posted 2003-08-19 00:00 |
| 元老会员 Posts 991 Credits 2,903 From 福建省 | |
|
@echo off can hide the prompt messages. As for some returned messages, you can check whether the command has a /Y parameter for making the default choice.
Some commands require human-computer interaction, so there's no way around that. |
|
| Floor3 ajeef | Posted 2003-08-20 00:00 |
| 初级用户 Posts 14 Credits 167 | |
|
@echo off can only hide the commands themselves, but it can't hide the echoed output messages. How can I stop it from echoing them?
I've already solved this problem. Someone reminded me of the printer network test null port, and that can be used for this........ But the second problem still hasn't been solved? How can I prevent this: when running a batch file, a DOS dialog box pops up? |
|
| Floor4 iceboy | Posted 2003-08-20 00:00 |
| 银牌会员 Posts 512 Credits 1,681 | |
|
A DOS dialog box? You mean WBAT, right... Just put "::" in front of WBATE and that'll do it. REM works too.
|
|
| Floor5 ajeef | Posted 2003-08-21 00:00 |
| 初级用户 Posts 14 Credits 167 | |
|
Oh! Correction of wording: it's when the net command under Windows 2000 Server OS runs a batch file through cmd.exe!
![]() |
|
| Floor6 Hwlon | Posted 2003-08-21 00:00 |
| 初级用户 Posts 7 Credits 132 | |
| Floor7 ajeef | Posted 2003-08-21 00:00 |
| 初级用户 Posts 14 Credits 167 | |
The following is quoted from hwlon's post at 2003-8-21 11:16:01: You'll understand after looking at this picture. Adding >nul is also useless! If you don't believe it, try it yourself, the dialog box will still pop up! http://photo.online.tj.cn/upload_pic0723/2738/97385721667323788307521.gif |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |