msg
小猪老师 发表于 2020-06-25 07:42浏览次数:
The msg command allows you to send messages to other users on a network.
目录:
1 msg 运行系统环境
2 msg 语法
3 msg 示例
msg 运行系统环境
msg 语法
MSG {username | sessionname | sessionid | @filename | *} [/SERVER:servername] [/TIME:seconds] [/V] [/W] [message]
username
|
标识指定的用户名。
|
sessionname
|
会话名称。
|
sessionid
|
会话的ID。
|
@filename
|
标识一个文件,该文件包含要发送消息的用户名,会话名和会话ID的列表。
|
*
|
将消息发送到指定服务器上的所有会话。
|
/SERVER:servername
|
要联系的服务器(默认为当前)。
|
/TIME:seconds
|
等待接收器确认味精的时间延迟。
|
/V
|
显示有关正在执行的操作的信息。
|
/W
|
等待用户的响应,对/ V很有用。
|
message
|
指示您要发送的消息。如果未指定,则提示输入或从stdin读取。
|
MSG {username | sessionname | sessionid | @filename | *} [/SERVER:servername] [/TIME:seconds] [/V] [/W] [message]
username
|
Identifies the specified username.
|
sessionname
|
The name of the session.
|
sessionid
|
The ID of the session.
|
@filename
|
Identifies a file containing a list of usernames,sessionnames, and sessionids to send the message.
|
*
|
Sends a message to all sessions on a specified server.
|
/SERVER:servername
|
Server to contact (default is current).
|
/TIME:seconds
|
Time delay to wait for the receiver to acknowledge msg.
|
/V
|
Display information about actions being performed.
|
/W
|
Wait for a response from the user, useful with /V.
|
message
|
Dictates the message you'd like to send. If none specified, prompts for it or reads from stdin.
|
您可以将消息发送到您的用户名。例如,您可以在批处理文件中使用msg命令,以在触发某些事件或完成该批处理文件时向自己发送消息。
You can send messages to your username. For example, you could use the msg command in a batch file to send yourself a message when something is triggered or when the batch file is completed.
msg 示例
msg hope Hi Computer Hope!
发送一个消息给用户“希望”与消息“Hi Computer hope !”
msg hope /V /W Can you see this?
发送
给“hope”用户的一条消息说“can you see this?”然后等待直到
用户单击Ok按钮(响应),然后返回到
命令行。
msg hope Hi Computer Hope!
Send a message to the user "hope" with the message "Hi Computer Hope!"
msg hope /V /W Can you see this?
Sends
a message to the user "hope" saying "Can you see this?" and waits until
the user clicks the Ok button (a response) and then returns to the
command line.