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!
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?
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.
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!