echo (将输入的文本回显到屏幕上)

舞夕之 发表于 2020-06-28 17:22
浏览次数:
在手机上阅读

Echo命令将输入的文本重新显示到屏幕上,并可以将文本发送到计算机上的外设,例如COM端口。

查看英文版

目录

1 echo 运行系统环境

2 echo 语法

3 echo 示例

echo 运行系统环境

Windows 95

Windows 98

Windows xp

Windows vista

Windows 2000

Windows 7

Windows 8

Windows 10

Windows NT

Windows ME

MS-DOS 2.0 - 6.0, 6.2, 6.22

echo 语法

显示消息,或者启用或关闭命令回显。

ECHO [ON | OFF]
ECHO [message]

若要显示当前回显设置,请输入不带参数的 ECHO。

Displays messages, or turns command-echoing on or off.

ECHO [ON | OFF]
ECHO [message]

Type echo;without parameters to display the current echo setting.

查看英文版

查看中文版

echo 示例

echo ata > com1

根据您的调制解调器是否在com1上,此命令将使调制解调器尝试响应并发出响声。要停止响声,请输入echo atz>com1。

echo this is a test > test.bat

这个命令会放在文件test.bat“echo this is a test”,然后每当您输入test时,它都会在该文件中输入echo this is a test。

echo this is an example >> test.txt

上面的示例将响应“This is a Example”,然后使用“>>”将该文本附加到test.txt文件中。

echo testing the echo string

此命令将在屏幕上键入,测试echo字符串,然后返回提示符。

echo ata > com1

Depending on whether or not your modem was on com1, this command would make the modem try responding and a squealing noise from the modem. To stop the squealing, type echo atz > com1.

echo this is a test > test.bat

This command would put in the file test.bat "echo this is a test," then whenever you type in test, it would type in echo this is a test.

echo this is an example >> test.txt

The example above would echo "this is an example" then using ">>" would append that text into the test.txt file.

echo testing the echo string

This command would type on your screen, testing the echo string, and then take you back to the prompt.

查看英文版

查看中文版

其他命令行

edit | edlin | emm 386 | enable | endlocal | erase | exit | expand | extract |

如此好文,分享给朋友
发表评论
验证码:
评论列表
共0条