Chat with Friends connected in LAN via Command Prompt | Nagarams Blog

Tuesday, 7 April 2015

Chat with Friends connected in LAN via Command Prompt

Rate this Post:

A simple code to chit chat with friends connected in LAN via Command Prompt.

Chat with Friends connected in LAN via Command Prompt

Just copy the below code with out ===, paste it in note pad & save it as .bat extension.
Then double click on the created file to enjoy the chat.
=================================================================
@echo off
:A
echo LAN Messenger
echo.

set /p From=Type Your Name:
set /p target=Target IP Address:
set /p user=user number:
set /p body=Message:
msg /server:%target% %user% Message From %From%: %body%
echo Your Message has been sent.
set /p DUMMY=Press Enter to send another message or close
goto :B
:B
set /p body=Message:
msg /server:%target% %user% Message From %From%: %body%
goto :B

===================================================================
This is one way messenger, to chat from both ways, both users must have this code.

You may also Interested to read:


Thank You
Please leave your comments

No comments :

Post a Comment