PDA

View Full Version : Chat With Command Prompt


rakeshishere
11-07-2006, 02:42 PM
Chat With Command Prompt

If you want a private chat with a friend or client on you Network, you don't need to download any fancy program!
All you need is your friends IP address and Command Prompt.

Firstly, open Notepad and enter:

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

Now save this as "Messenger.bat". Open the .bat file and in Command Prompt you should see:

MESSENGER
User:

After "User" type the IP address of the computer you want to contact.
After this, you should see this:

Message:

Now type in the message you wish to send.
Before you press "Enter" it should look like this:

MESSENGER
User: 56.108.104.107
Message: Hi

Now all you need to do is press "Enter", and start chatting!

blueshift
11-07-2006, 11:34 PM
I was initially confused with ur thread title.
But this only works for those having static IP address.
Did you actually test this? I mean how does the other person know of your message?
Thanks anyway for the post. I need to try this.

Charan
11-07-2006, 11:35 PM
WOW i didnt know the this was possible :p . thanks for the info, but i dono my friends IP . Can i know yours rakeshishere :p just kidding :p

vandit
12-07-2006, 12:13 AM
but how will the other person know that i wanna chat with him??
:confused:

arunks
12-07-2006, 01:04 AM
but rubbish..
u just changed the way of using net send command
.

the syntax is
net send "ip address or workgroup name" "message"


just type above statement with ur dstination ip and message and press enter,..
u have to type just two additional words net and send in addition to ip adress and message..


U can also use * in place of ip address if wanna send same msg to everybody on network.

rahul_becks23
12-07-2006, 03:21 AM
if u can do one thing in windows gui,u can SURELY do it in COM. PROM.

gary4gar
12-07-2006, 09:13 AM
it works for u as u are in postal dep of usa can have a static ip but its not pratical in india as few have static ip rest ppl ip chages every time the connect.

anyways a good find

bazigaar_no_1
12-07-2006, 10:32 AM
I am getting an error saying that SEND is not a valid net command ....
I am using Win98... Will it work on it??
Please reply

it_waaznt_me
12-07-2006, 10:59 AM
Net Send works on Nt machines .. Plus this will work only if the Messenger service (Services.msc) is not disabled .. This is the first service that is blocked by network administrators to manage bandwidth.
Most of us use IP Messenger (http://www.ipmsg.org/index.html.en) for chatting on the Lan ..

rakeshishere
13-07-2006, 03:05 AM
Looks like this thread has a lot of questions...Let me answer it

1.Works only for static IP address.
2.Works in win98,win 2000,win xp[according to my test]
3.Use the instructions of it_waaznt_me to work at any errors occuring to you

ferrarif50
13-07-2006, 06:15 PM
Well ... heres is version 1.1 ;0

This avoids the repetitive entry of the IP address:


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


This stuff is more useful in a LAN/Intranet system.

nach p
16-07-2006, 02:40 PM
nice info , its working.