Geser
14.12.2005, 15:15
Очень часто на рабочих станциях сервис Messanger отключен и попытка отослать на такой комп сообщения командой net send заканчивается неудачей:
C:\>net send localhost "test"
An error occurred while sending a message to LOCALHOST
The message alias could not be found on the network
More help is available by typing NET HELPMSG 2273.....
В Windows XP и Windows Server 2003 есть утилита коммандной строки MSG.EXE, которая отсылает сообщение пользователю.
Если вы наберете MSG /?, то получите список ключей выполнения даной команды:
Send a message to a user.
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 to.
* Send message to all sessions on specified server.
/SERVER:servername server to contact (default is current).
/TIME:seconds Time delay to wait for receiver to acknowledge msg.
/V Display information about actions being performed.
/W Wait for response from user, useful with /V.
message Message to send. If none specified, prompts for it
or reads from stdin.
Ну а далее, если Вам надо отослать сообшение пользеру VASYA, пишете так:
c:\>msg VASYA "OBED!"
и он получит сообщение.
n-admin.com (http://www.n-admin.com/n9-880.html)
C:\>net send localhost "test"
An error occurred while sending a message to LOCALHOST
The message alias could not be found on the network
More help is available by typing NET HELPMSG 2273.....
В Windows XP и Windows Server 2003 есть утилита коммандной строки MSG.EXE, которая отсылает сообщение пользователю.
Если вы наберете MSG /?, то получите список ключей выполнения даной команды:
Send a message to a user.
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 to.
* Send message to all sessions on specified server.
/SERVER:servername server to contact (default is current).
/TIME:seconds Time delay to wait for receiver to acknowledge msg.
/V Display information about actions being performed.
/W Wait for response from user, useful with /V.
message Message to send. If none specified, prompts for it
or reads from stdin.
Ну а далее, если Вам надо отослать сообшение пользеру VASYA, пишете так:
c:\>msg VASYA "OBED!"
и он получит сообщение.
n-admin.com (http://www.n-admin.com/n9-880.html)