Отправить сообщение по сети. Net send — встроенный чат в Windows XP sp1
Sends messages to other users, computers, or messaging names on the network.
Syntax
net send {name | * | /domain [: name ] | /users } message
Parameters
name : Specifies the user name, computer name, or messaging name to which you want to send the message. If the information that you supply contains spaces, use quotation marks around the text (for example, " Computer Name " ). Long user names might cause problems when you use them as NetBIOS names. NetBIOS names are limited to 16 characters, and the sixteenth character is reserved.
* : Sends the message to all the names in your domain or workgroup.
/domain : name : Sends the message to all the names in the computer"s domain. You can specify name to send the message to all the names in the specified domain or workgroup.
/users : Sends the message to all users connected to the server.
message : Required. Specifies the text of the message.
net help command : Displays help for the specified net command.
Remarks
You can send a message only to a name that is active on the network. If you send the message to a user name, that user must be logged on and running the Messenger service to receive the message.
You can broadcast a message to all of the names in your computer"s domain (use * or /domain ), or a different domain (/domain: DomainName ). Broadcast messages can contain up to 128 characters. Use discretion when you send messages to multiple users.
/users lets you send a message to all users who have sessions with the server. Use discretion when you send messages to multiple users.
The Messenger service must be running for messages to be received. For more information about how to start a service, see Related Topics.
Examples
To send the message "Meeting changed to 3 P.M. Same place." to the user robertf, type:
net send robertf Meeting changed to 3 P.M. Same place.
To send a message to all users connected to the server, type:
net send /users This server will shut down in 5 minutes.
To send a message that includes a slash mark (/), type:
net send robertf "Format your disk with FORMAT /4"
Formatting legend
Information that the user must supply |
|
Elements that the user must type exactly as shown |
|
Microsoft Windows offers an easy method to send short messages to other computers, users, and even entire workgroups on the local network - it"s a WinPopup message / Nets end message (in Windows 95, Windows 98, Windows Me, Windows NT, Windows 2000, Windows XP, and Windows 2003). NET SEND command is a part of NET command . For Windows NT, Windows 2000, Windows XP, and Windows 2003Note: Windows Vista, Windows 7 and Windows 8 no longer have net send command . You can try to use msg command instead of net send, but msg.exe is only available in professional and business editions. Our LanTalk LAN messenger is a better choice to replace net send or msg command, because it"s flexible and much more powerful. LanTalk supports command line interface and fast message broadcasting. By default, under Microsoft Windows NT, Windows 2000, Windows XP, and Windows 2003, there is no program like Winpopup . In other words, there is no GUI software to send messages over the network-only a command line tool named Netsend command. This command is often used by network administrators to notify users on the network about important news and events. If you need an effective Windows application to send messages and network alerts between networked computers (users), take a look at our or net send compatible messenger LanTalk XP . In the NT-based Windows systems, two system components allow you to send and receive WinPopup messages: Netsend command and Messenger service. Incoming messages from other Windows systems are displayed in a simple Message box , without any buttons except OK. This is the messenger service. This service does not store any messages in memory or in files and can"t navigate over the received messages either. One message, one message box. When you close it, you lose it. Note: You shouldn"t install any special software or start up any special program to receive messages. This notification system is always active unless you have disabled the Messenger service . Messenger service has been automatically disabled in Windows XP service pack 2. You should enable it manually in this case. Click to learn about messenger service and how to find and start it. To send Winpopup messages (net send messages), you need to open a Command Prompt Window (DOS-box ), and use the NET command with send parameter. To get some more help about available options of the NET command, type: NET ? , for more info on a option, type: NET ? : To send WinPopup messages (net send messages), you need to open a Command Prompt Window (DOS-box), and use the NET command with send parameter. To get more help about available options of NET command, type: NET ? ; for more info on an option, type: NET option ? : To send a message, please type: net send name_of_user_or_computer the_text Define the name of a user (who is logged on to the network) or a computer name (as defined in the Network neighborhood), followed by a short message text. As in Winpopup , the system will determine if the name of the target user or computer is valid or not and notify you if this user or computer is not accessible. When sending a message to the whole Workgroup or Domain, it will be displayed on all computers in the Workgroup or Domain. Be careful with this feature! Many times this feature has caused some funny and sometimes not really funny things in big office networks. As noted above, NT-based systems have Netsend command to send messages (msg command in Windows Vista and Windows 7) and Messenger service to receive them (Windows Vista and Windows 7 have their own service as part of the terminal server component). In the old Windows version (Windows 95, Windows 98, and Windows Me), only the WinPopup application is available, and there are no command line tools. We have a small and free utility that works in all Windows versions called Netsend command . You can use it for free if you cannot use net send command in your system. Стандартная служба для передачи сообщений — оси win xp. В sp2 и sp3 отключена за не надобностью. И так для возможности пользоваться этой службой, нам необходимо проделать следующее:
Для включения службы сообщений из командной строки введите в командном интерпретаторе следующие команды: sc config messenger start= auto
Для отключения службы сообщений из командной строки введите в командном интерпретаторе следующие команды: net stop messenger
Для включения службы терминалов из командной строки введите в командном интерпретаторе следующие команды: sc config TermService start= auto
Для отключения службы терминалов из командной строки введите в командном интерпретаторе следующие команды: net stop TermService
З.Ы. возможно у вас вообще нет службы терминалов, не паникуйте это печалька, но все можно исправить. Для начала проверьте, есть ли termsrv.dll в системной папке %windir%\System32\(если нет этого файла — ), потом импортируй настройки служб с любимого всеми сайта (зеркало — ) . Потом нужно будет подкорректировать один пункт:
Этот пункт не является обязательным, он нужен лишь для удобства общения. Изменяем имя компьютера и рабочую группу, для того чтобы в дальнейшем использовать это имя и рабочую группу вместо IP адреса при посылке сообщения. 1. Найдите на рабочем столе значок Мой компьютер , нажмите на нем правой кнопкой мыши и выберите пункт Свойства . 2. Выберите вкладку Имя компьютера и нажмите кнопку Изменить . 3. В поле Имя компьютера введите имя компьютера (латинскими буквами), в поле Рабочая группа введите PAUTINA . Нажимите кнопку OK . 4. После операционная система потребует перезагрузки. Выполните ее. Синтаксис команды net sendКоманда net send имеет следующий синтаксис: net send {username | * | /domain[:domainname] | /users} message username - имя пользователя, имя компьютера или псевдоним, которому требуется отправить сообщение; * - отправка сообщений всем членам домена или рабочей группы; /domain[:domainname] - отправка сообщения всем именам в домене компьютера или в домене domainname; /users - отправка сообщения всем пользователям, подключенным к серверу; message - текст сообщения. Замечания по использованию команды net sendЕсли аргументы параметров команды содержат пробелы, их следует заключать в кавычки. Возможны трудности при использовании длинных имен получателей сообщений. Имена, используемые службой сообщений, имеют длину до 15 знаков. Предельная длина широковещательных сообщений составляет 128 знаков. Предельная длина персональных сообщений — 1600 знаков. Примеры использования команды net sendЧтобы отправить сообщение «Отправить сообщение по локальной сети можно командой net send» пользователю ivanov введите: net send ivanov Отправить сообщение по локальной сети можно командой net send Чтобы отправить сообщение всем пользователям, подключенным к компьютеру, с которого отправляется сообщение, введите: net send /users Всем немедлено выйти из 1С! Чтобы отправить сообщение всем пользователям в домене ukmz введите: net send /domain:ukmz Электричество в здании будет отключено через 5 минут Чтобы отправить сообщение всем пользователям в домене компьютера, с которого отправляется сообщение, введите. |