Here is a simple batch program that you can use to chat in a networked environment using command prompt….
1. Open up a notepad.
2. Copy and paste the following code.
3. Save it with the extension .bat.
4. Execute the file.
@echo off
:A
Cls
echo MESSENGER
set /p n=User:
set /p m=Message:
net send %n% %m%
Pause
Goto A
5. You have to specify the IP Address or hostname of the person whom you want to chat with, when it prompts for User.
6. You have to type the message and hit enter when it prompts you for message.
7. That’s it the message is now sent to the destination.
|