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.
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:
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:
- How to give Admin rights to a specific User or All Users for an Application
- Automatic Proxy for Mozilla Firefox for all the users in windows OS
- How to modify IPv4 settings via CMD or. Bat file
- Add a large number of users with specific permissions
- Access untrusted publisher application in windows10
Thank You
Please leave your comments
No comments :
Post a Comment