China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-13 04:00
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » How to hide executed commands during DOS startup View 953 Replies 6
Original Poster Posted 2003-12-06 00:00 ·  中国 吉林 长春 联通
中级用户
★★
Credits 420
Posts 86
Joined 2003-06-03 00:00
23-year member
UID 3187
Gender Male
Status Offline
Moderator:
Hello, I'd like to ask you: when DOS starts up it always shows it executing that command in AUTOEXEC。BAT. Is there any way to hide these steps? Please explain clearly.
Floor 2 Posted 2003-12-06 00:00 ·  中国 北京 科技网
银牌会员
★★★
颓废青年
Credits 2,265
Posts 721
Joined 2003-05-12 00:00
23-year member
UID 2032
Gender Male
Status Offline
Add >nul after the command
Floor 3 Posted 2003-12-18 00:00 ·  中国 吉林 长春 联通
中级用户
★★
Credits 420
Posts 86
Joined 2003-06-03 00:00
23-year member
UID 3187
Gender Male
Status Offline
Do you mean adding >NUL after every command that is executed?
Floor 4 Posted 2003-12-18 00:00 ·  加拿大 安大略省 多伦多
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
If you don't want to add >NUL after every command, try the CTTY NUL command.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 5 Posted 2003-12-18 00:00 ·  中国 吉林 长春 联通
中级用户
★★
Credits 420
Posts 86
Joined 2003-06-03 00:00
23-year member
UID 3187
Gender Male
Status Offline
Hello, Moderator:
After I add >NUL after the command, it only removes the prompt information, but it still shows things like:
a:\> ccdos.exe>nul. Is there any way to remove these lines too, so that after the batch file runs it directly shows a:\>, without showing those programs being executed in between? Please help.
Thank you
Floor 6 Posted 2003-12-19 00:00 ·  中国 广东 肇庆 电信
高级用户
★★
Credits 578
Posts 135
Joined 2003-07-10 00:00
23-year member
UID 6709
Gender Male
Status Offline
Did you add @echo off at the beginning of the batch file?
Floor 7 Posted 2003-12-19 00:00 ·  中国 吉林 长春 联通
中级用户
★★
Credits 420
Posts 86
Joined 2003-06-03 00:00
23-year member
UID 3187
Gender Male
Status Offline
Thanks
Forum Jump: