Saturday, March 10, 2012

Chatting using Command Prompt

If you want to chat with your friends who are on the same LAN network, you do not need to download IM programs, simply use the resources that exist on your computer, Command Prompt and Notepad. There are two ways you can do that using the Net Send command directly at the command prompt or with a slight variation with a little touch of coding with Notepad. In essence, both of which use the command "net send". Before we begin chatting with Command Prompt, there are a few things to note are:
  1. Make sure Messaging service has been assigned Automatic on your computer and your friends computer. This can be done in the following way.
    • Click Control Panel; Performance and Maintenance; Administrative Tools ; Service; , it will show following display :
    • Click Messenger, and select on Start up type : Automatic, then click Apply then Start and OK.


      2. Be sure to disable the firewall on your computer and your friends.

After make sure two things above, we can do chatting using Command Prompt

1st Method : Using the direct command "net send" at the command prompt

Example : net send 10.12.33.216 Selamat Pagi

2nd Method : Using a bit of coding with Notepad. Source code is



Once you have finished typing the source code and then SAVE the file name Chatting.bat remember the saved file must be of the form (. Bat) after you finish to save and run the program. Here is a display program.


Both of the above methods will produce the same output shown in the following figure :




Happy Trying and good luck!!!
*) for Windows 7 and Vista Net Send changed to msg

No comments:

Post a Comment