大网数据广告活动
Windows排障命令

telnet set

· 52CE 我爱测

Reference article for the telnet set command, which sets options.

Sets options. You can use the telnet unset command to turn off an option that was previously set.

Syntax

set [bsasdel] [crlf] [delasbs] [escape <char>] [localecho] [logfile <filename>] [logging] [mode {console | stream}] [ntlm] [term {ansi | vt100 | vt52 | vtnt}] [?]

Parameters

Parameter Description
bsasdel Sends backspace as a delete.
crlf Sends CR & LF (0x0D, 0x 0A) when the Enter key is pressed. Known as New line mode.
delasbs Sends delete as a backspace.
escape <character> Sets the escape character used to enter the telnet client prompt. The escape character can be a single character, or it can be a combination of the CTRL key plus a character. To set a control-key combination, hold down the CTRL key while you type the character that you want to assign.
localecho Turns on local echo.
logfile <filename> Logs the current telnet session to the local file. Logging begins automatically when you set this option.
logging Turns on logging. If no log file is set, an error message appears.
mode `{console stream}`
ntlm Turns on NTLM authentication.
term `{ansi vt100
? Displays help for this command.
Remarks
  • On non-English versions of telnet, the codeset <option> is available. Codeset <option> sets the current code set to an option, which can be any one of the following: shift JIS, Japanese EUC, JIS Kanji, JIS Kanji (78), DEC Kanji, NEC Kanji. You should set the same code set on the remote computer.

Example

To set the log file and to begin logging to the local file tnlog.txt, type:

set logfile tnlog.txt

Related links

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 10/16/2017
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。