1) All you need is your friend's IP Address and your Command Prompt.
2) Open Notepad and write this code as it is.....!
set /p n=User:
set /p m=Message:
net send %n% %m%
3) Now save this as "Messenger.Bat".
4) Open Command Prompt.
5) Drag this file (.bat file) over to Command Prompt and press Enter.
6) Now, type the IP Address of the computer you want to contact and press enter
7) Now all you need to do is type your message and press Enter.