WidgetBucks - Trend Watch - WidgetBucks.com

Thursday, October 18, 2007

Chat on LAN

For chating in any lan you dont need any software .Just copy the code in the note pad .

@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!

3 comments:

RONNY said...

in my pc , encountered such error while testing your code for chatting in lan :
"the message alias couldnt be found on the network"
any solutions

anoop_lockheed said...

in my pc also same msg
"the message alias couldnt be found on the network"
any solutions

syed said...

i also find an error msg while doing it on my college