中国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-12 18:40
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » ECHO command question [Help]
Printable Version  722 / 6
Floor1 hpqq Posted 2003-07-16 00:00
初级用户 Posts 6 Credits 120
ECHO OFF
ECHO 12
ECHO ON
@ECHO 34
ECHO 56
ECHO OFF
ECHO 78
@ECHO 90
The screen displays:
12
34
ECHO 56
56
ECHO OFF
78
90 Why does the screen display this result? What do the commands above mean, and what is the reason for this kind of display?
Floor2 pfox Posted 2003-07-16 00:00
银牌会员 Posts 446 Credits 1,451
The following is quoted from hpqq at 2003-7-16 9:10:54:
ECHO OFF
ECHO 12
ECHO ON
@ECHO 34
ECHO 56
ECHO OFF
ECHO 78
@ECHO 90
The screen displays:
12
34
ECHO 56
56
ECHO OFF
78
90 Why does the screen display this result? What do the commands above mean, and what is the reason for this kind of display?



When ECHO ON is in effect, ECHO itself will also be displayed. If you put @ in front of it, then ECHO will not be displayed. When ECHO OFF is in effect, then ECHO is not displayed, and in this case it will not be displayed whether there is an @ or not.
Floor3 dv人 Posted 2003-07-16 00:00
初级用户 Posts 35 Credits 281
What problem is there???????? It doesn't help at all!!!!!
Floor4 hpqq Posted 2003-07-16 00:00
初级用户 Posts 6 Credits 120
Then what does @echo off mean?
Floor5 电吉入侵 Posted 2003-07-17 00:00
初级用户 Posts 377 Credits 1,480
Reply #2 explained it very clearly...
When @ executes ECHO OFF, ECHO itself is not displayed ; ECHO OFF makes the ECHO used afterward not display.
Floor6 沈洁 Posted 2003-07-17 00:00
金牌会员 Posts 1,812 Credits 4,590 From 上海市
@ECHO OFF means that itself and all the prompts below it are not displayed!
If there is an @ in front, it means this command itself is not displayed, only the result is shown!
Floor7 6618 Posted 2003-07-27 00:00
中级用户 Posts 54 Credits 356
The reason I can't become an expert is because I only answer overly simple BATW commands! This question is too simple!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023