Instructables

How to make chat with command prompt (cmd)

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
Will this work sending a message from Windows XP to Windows Vista or vice versa?
cld0000 mnovelli26 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?
maestroInt4 days 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.

rvantine11 months 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.

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


rbasu1 teknohawk11 months ago
To find out the IP address, just typing "ipconfig" in command prompt (cmd) will do!
rbasu111 months 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