1.

Solve : Send message with CMD?

Answer»

I'm trying to SEND a message in CMD to a different computer, I know in XP the command is

Code: [Select]@echo off
:A
Cls
set /p n=User: IP address
set /p m=Message: message
net send %n% %m%
Pause
Goto A

But in Win7 they removed that command so now you must use "msg" and you have to type,

Code: [Select]@Echo off
:A
cls
msg /server:PC-name username message
goto A

But this is is only for LAN and you can't send a message to a other computer with a IP.

So my question is if you can send a message from Win7 to a other computer that is not on LAN.Really nice concept and question.
I hope that should be possibleQuote from: vishuvishal on August 15, 2010, 06:21:57 PM

Really nice concept and question.
I hope that should be possible

If you do not know the answer, do not post. This is not a chat room.


Then you must have an answer to it.

Do you have any idea???
how can we do it.Quote from: vishuvishal on August 16, 2010, 12:23:48 PM


Then you must have an answer to it.

Do you have any idea???
how can we do it.

Please don't spam my post.

Sometimes I just get so BORED... But I would be glad if someone knew if how/if you could do this.The bad news is : msg.exe is definitely not equivalent to net send.
MSG is designed to send messages to 'sessions' on the same machine which is acting as a 'TERMINAL server'.

To enable MSG to work without a Terminal Services session, you should activate the following registry key :
HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server
Name : AllowRemoteRPC
Type : REG_DWORD
Value : 1

Another solution is to use another lan messenger such as

But it is not free so ... let's try msg again ! So do
Quote from: voluris on August 31, 2010, 03:32:08 AM
HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server
Name : AllowRemoteRPC
Type : REG_DWORD
Value : 1

And I can send message?

Btw is it only to Win7?msg.exe is not included with vista and windows 7 home (basic or premium) editions. So unless you have an office or enterprise EDITION (?), you're out of luck with that command.Quote from: MattPwns on September 02, 2010, 04:56:12 AM
msg.exe is not included with vista and windows 7 home (basic or premium) editions. So unless you have an office or enterprise edition (?), you're out of luck with that command.

I have the Ultimate edition and I do think I got the msg.exe, but still is only for LAN, and I have been trying to get it to work with a VPN program but didn't GO so great. But even if I got it to work in a VPN program both of the computers need to start it, and it's that what I don't want, I just want to send a message without a 3'rd party program.

To be able to receive a message through a VPN (or to a host computer for that part) you must do;

Code: [Select]HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server

Name : AllowRemoteRPC

Type : REG_DWORD

Value : 1 (the dafault is '0')

So it seems like you can't send a message in Win7 by the msg to a other IP address, but can you get the net send back to Win7?


Discussion

No Comment Found