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-12 19:30
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » ECHO command question [Help] View 723 Replies 6
Original Poster Posted 2003-07-16 00:00 ·  中国 上海 静安区 电信
初级用户
Credits 120
Posts 6
Joined 2003-07-16 00:00
23-year member
UID 6974
Gender Female
Status Offline
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?
Floor 2 Posted 2003-07-16 00:00 ·  中国 广东 汕头 电信
银牌会员
★★★
Credits 1,451
Posts 446
Joined 2002-10-20 00:00
23-year member
UID 29
Gender Male
Status Offline
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.
Floor 3 Posted 2003-07-16 00:00 ·  中国 天津 联通
初级用户
你说呢
Credits 281
Posts 35
Joined 2003-06-23 00:00
23-year member
UID 5734
Gender Male
Status Offline
What problem is there???????? It doesn't help at all!!!!!
dv人-----------------------------呀
Floor 4 Posted 2003-07-16 00:00 ·  中国 上海 静安区 电信
初级用户
Credits 120
Posts 6
Joined 2003-07-16 00:00
23-year member
UID 6974
Gender Female
Status Offline
Then what does @echo off mean?
Floor 5 Posted 2003-07-17 00:00 ·  中国 广东 广州 白云区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
Reply #2 explained it very clearly...
When @ executes ECHO OFF, ECHO itself is not displayed ; ECHO OFF makes the ECHO used afterward not display.
欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Floor 6 Posted 2003-07-17 00:00 ·  中国 上海 电信
金牌会员
★★★★
小飞侠
Credits 4,590
Posts 1,812
Joined 2003-04-02 00:00
23-year member
UID 1400
Gender Male
From 上海市
Status Offline
@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!
Floor 7 Posted 2003-07-27 00:00 ·  中国 广东 深圳 龙岗区 电信
中级用户
★★
Credits 356
Posts 54
Joined 2003-04-15 00:00
23-year member
UID 1552
Gender Male
Status Offline
The reason I can't become an expert is because I only answer overly simple BATW commands! This question is too simple!
Forum Jump: