Recently in the compilation of FTP upload data batch processing, the need to use the local area network transmission data to prompt error, suddenly remembered forgot n long useless command (net send), results in Win7 under CMD run net send/? Failed to run. After Baidu great God Search, originally from Vista net send command was canceled by Microsoft, again Baidu, WIN 7 LAN Send message can use MSG command. In the jar looked for a long time also did not find the real use of the method, on their own Baidu, Google finally got it, sent to let everyone look down ....
MSG system with help from the use
C:\windows\system32>msg
Sends a message to the user.
MSG {username | sessionname | sessionid | @filename | *}
[/server:servername] [/time:seconds] [V] [/w] [Message]
Username identifies the specified user name.
SessionName the session name.
SessionID session ID.
@filename recognize a file that contains a list of user names, session names, and sessions identification numbers to which messages are sent.
* Send information to all sessions on the specified server.
/server:servername the server you want to contact (the default value is the current value).
/time:seconds waits for the receiver to confirm the message's time delay.
/V Displays information about the action that was performed.
/w waits for the user's response and is useful with/V.
Message to send. If not specified, a prompt is issued, or read from stdin.
The following code executes------CMD test at the beginning---.
Test condition: This machine ip:192.168.1.200 test computer ip:192.168.1.201 in the same LAN, and can ping pass.
1. According to the above MSG use method carries on the native debugging verification. msg/server:192.168.1.200 * "Hello"----------------->>>>> run successfully, pop-up message dialog box.
2. Then carry out two computer communication authentication in LAN. msg/server:192.168.1.201 * "Hello"---------->>>>> run failed, error. Error 1722 when getting the session name.
3. Again Baidu, in csdn a post on a way, cmd regedit modify Registry Hkey_local_machine\system\currentcontrolset\control\termimal The value of the ALLOWREMOTERPC in the server is modified to 1 (the default is 0) because the Messenger Messenger service is required on the XP system under the net SEND command, but there is no service within the Win7. So you need to modify the registry to enable the Win7 system to send information within the LAN, which can be similar to XP.
4. Verification or failure at this time, the test computer and the firewall of the machine are all closed, the test computer's registry as well as modified OK, again verify msg/server:192.168.1.201 * "Hello" Run failure, error 192.168.1.201 does not exist or connection failed. 。。 Finally looking for, with Google search found the final answer. Open Control Panel, double-click Credential Manager, click Add Windows credentials, the first line of the test computer's IP address, the second line to write the user name test computer, the third line to write test computer password, restart the computer, run--cmd-------msg/server : 192.168.1.201 * "Hello"------------->>> run successfully ...
The final answer to Google search (English, a little English can be read) Link: http://social.technet.microsoft.com/Forums/windows/en-US/ 344aa708-5477-46f9-be4f-ad8b3b2348b0/sending-a-message-to-win-7-host-with-msgexe?forum=w7itprogeneral
1 Go to Credential Manager
2 Click Add a Windows Credential
3 Type the name of the computer, username and password of the computer, are trying to contacts
4 computers that you are trying to contact most is in the same as you.
Good luck it took me months to get it properly working
In the above learning process, found also can, cmd input \\192.168.0.201 then enter, pop-up dialog box input account and password,
Below a check option, for record account and password, check this, Credential Manager automatically add corresponding Windows credentials.