Friday, March 13, 2009

LAN chatting batch code snippet

Here is batch file code that will enable u to chat with others on LAN.
U need administrative privelieges for it on ur machine. Now u all need is the ip address of person with whom u wanna chat. Just type the following code in notepad and save it as chat.bat
double click it to start chatting.

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

Now u get this on screen
MESSENGER
User:

now type the ip of the person then hit enter. now u'll see some thing like this on screen
MESSENGER
User: IP_Address or computer name with whom u want to chat
Message:

now type the message and hit enter thats all. If network connection is ok then u can start chatting.

No comments:

Post a Comment