Instructables
Picture of How to make chat with command prompt (cmd)
Hi everyone today I will show you how to make chat with cmd .
First open Notepad and write this

@echo off
:A
Cls
echo MESSENGER
set /p n=User:
set /p m=Message:
net send %n% %m%
Pause
Goto A

and then save as "Messenger.bat" and close the Notepad
 
Remove these adsRemove these ads by Signing Up

Step 1:

Picture of
2011-10-15_193620.png
when you open the file Messenger it will open the command prompt
whit this.

Messenger
User:

after "User" write the ip of the computer you want to contact and then press enter.
weemanrd2 years ago
@echo off
echo Messenger
echo When typing the computer name, type
echo in /server:computer replacing
echo computer with the IP adress of the computer.
:START
set /p c=Enter computer name here:
:A
set /p m=Enter message here:
msg * %c% %m%
GoTo A

This allows you to create a messenger on Windows 7 and after entering the ip address of the computer for the first you can simply send messages after that, without needing to re-enter the ip address

heyy....

this happens when i use to enter the computer ip to whom i wann connect

plss solve thiss...

cmdd.png
Will this work sending a message from Windows XP to Windows Vista or vice versa?
cld0000 mnovelli28 months ago

It will not work with Vista or later unless if they enable the features (by default Microsoft disabled those features to further secure the system and among other things).

where i should type the ip adress of my frnd??

Where the "user" name is.

Enter the IP where it says "user"
Also, what if I'm on my computer at home, and I send a message to a computer at school using that one CPU's IP address. Would the message send to just that computer or all the school CPU's? Or, If I'm on a school CPU, how do I send a MSG to an Individual user?
tanmoy87513 days ago

I get that screen in windows7. Send me the solution.Am i use default IP or Manual IP using TCP/IPv4?

mmm.png
XxProudxGamerxX made it!19 days ago

I did it. lel. If anyone is wondering on how to send a message to a computer outside your network type: /(ThatNetworksIP):(TheComputersIP) It must be like this or you will get an error and will have to restart the batch program again. THanks for this nice little project bakermiro!

DidIt.png

I also have to thank weemanrd for the easier handle on the way to use it. NOTE: If you are getting an error like 'Error 5 getting names' or 'Error 1825 getting names' please read over that you have the following registry key activated:

HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server

Name : AllowRemoteRPC

Type : REG_DWORD

Value : 1

(To do this run regedit then lookup the file tree then apply this and reboot.)

And then note that if you get the same command response as this; 'The syntax of this command is:

NET

[ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |

HELPMSG | LOCALGROUP | PAUSE | SESSION | SHARE | START |

STATISTICS | STOP | TIME | USE | USER | VIEW ]' then make sure you arent typing 'msg 12.0.0.1' instead of 'msg /SERVER:12.0.0.1'!

Again, thanks!

Muslim.sky41 month ago

i cant use this in win 7 :(

maestroInt2 months ago

i tried but was instead showing on my screen and not the recipients pc. pls help.

It won't work.the cmd always show this message:

The syntax of this command is:

NET

[ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |

HELPMSG | LOCALGROUP | PAUSE | SESSION | SHARE | START |

STATISTICS | STOP | TIME | USE | USER | VIEW ]

please help me!

In windows 8 do: MSG / server: ''destination'' ''sender'' ''text message''

remove the quotes

Exemple:

Message to Bob:

MSG / server: 192.168.1.107 Andre Hello Bob, how are you?

Ps.André is the machine name registered on the network

in place of the IP may be used as the name of a registered machine on the network.

rvantine1 year ago
whats the proper coding for when your stuck using windows 8 cause the coding in the instructable and the one in the comments dont work

In windows 8 do: MSG / server: ''destination'' ''sender'' ''text message''

remove the quotes

Exemple:

Message to Bob:

MSG / server: 192.168.1.107 Andre Hello Bob, how are you?

Ps.André is the machine name registered on the network

in place of the IP may be used as the name of a registered machine on the network.

teknohawk2 years ago
Ok, so I did research, and to figure out your computer ip adress, go to www.whatismyipadress.com and it says right there.


To find out the IP address, just typing "ipconfig" in command prompt (cmd) will do!
rbasu11 year ago
To find out the IP address, just typing "ipconfig" in command prompt (cmd) will do!
hey tel me one of the codes u're using i would like to make a game too.
DOES NOT WORK ON WINDOWS VISTA OR LATER
GASSYPOOTS2 years ago
whats your ip
spystealth12 years ago
Where did you learn to do this? I'm just wondering because I wrote a how-to on wikihow.com exactly like this. You can find it here: http://www.wikihow.com/Chat-With-Command-Prompt
By the way, it's no problem as long as you give credit to where credit is due. :)
bakermiro (author)  spystealth12 years ago
I learn that from my friend.
Oh, Okay. (So where did he learn it?) :)
he probably learned batch^^
Want to learn to?
open up a cmd-window and mess around with it. I learned it like that too.
Now I make games in batch^^.
([WIN]+[R], a run-window appears, write "cmd" and press enter).
Yeah, messing around inside a command prompt is fun. Here is a reference sheet from makeuseof.com containing a bunch of cool commands: http://www.makeuseof.com/pages/windows-command-prompt-commands-pdf
Panchz2 years ago
im sorry but this is useless.. and if you want to make it work on win7/vista
change the net send command to msg

is useless because it only allows to chat by LAN (local network)

and i beleave most people is not connected to others by lan and you have to tell username eachtime you want to say something.. will be better if u say user once and to have a option to change username whenever u want.
tabascow2 years ago
WOAH!!!!!!!!!!!!!!!this rocks!!!!!!!!!!!!!!!!!!!!!!!!!xD