Introduction: How to Make a Batch Messeger

Have you ever wondered how to send a message to another computer directly instead of using a social etwork to send it to an account or a complicated program? Well, this article is for you!

Step 1: Setting It Up

Download a coding software like notepad++, or just use notepad to do it.

Open up a file in you software, and then save it as a batch file(.bat) name it what you like(e.g message.bat).

Once youve done that, your ready to start writng your code!

Step 2: Getting the Basic Parts Written

Once you start writing there are a few lines of code you need to write

  • @echo off(This makes sure you dont get shown the file directory every time the prompt echos something)
  • color(This sets the color) go to http://www.robvanderwoude.com/ntcolor.php
  • cls(clears the screen just in case)
  • pause(Put this at the end to keep your program running forever instead of it closing immeadiantly)

Step 3: Writing the Actual Complicated Code

After you do that, you need to write some real code to make it work!

In between the cls and the pause, type this:

:A
Cls

echo MESSENGER

set /p n=User:

set /p m=Message:

net send %n% %m%

and after the pause, type this:

goto A

and your done!

Step 4: Running It

After you make your program, you need to know how to use it. So here's how it works, you run the program, and then type the ip adress of the computer you want to send it to.Then, press Enter. It'll come up with another text which asks you for your message.You simply type in the message you wanna send(BTW you cant send pictures or links but you can send urls) and press Enter!It will then send the message directly to that computer! Plus, after sending the message, it will prompt another ip, so you can send multiple messages without re running the program!

Please comment any compliments, problems, or suggestions!

Comments

author
casolanki (author)2016-08-17

where i can see the message comes to my machine...?

author
ismartroman (author)casolanki2016-09-06

Also, sine IP address actually has to do with router, try asking the people who provide you internet if any unauthorised/unexpected messages came to your router.

author
ismartroman (author)casolanki2016-09-06

If the computer is running batch at the time a prompt showing that the message has been sent to you should come up(only if @echo on), if not try looking through the batch part of system files or doing net recieve instead of send

author
Governor Keagan (author)2015-10-28

Awesome thanks for sharing

author
DIY Hacks and How Tos (author)2015-09-19

Thanks for sharing

author

Your welcome

author
ismartroman (author)2015-09-19

Thanks for reading this instructable

About This Instructable

500views

14favorites

License:

More by ismartroman:How to make a clock with batchHow to make a batch messeger
Add instructable to: