Chat Program

by Nate Oaks in Circuits > Computers

12262 Views, 42 Favorites, 0 Comments

Chat Program

Sample.PNG

This is no fake, the CMD program that I will show you how to make is a chat program. You can message your friends or family in school or at home!

Open Notepad

messengewr code.PNG

Press the windows button, then type notepad or make a new text document.

The Code (1)

messengewr code.PNG

Type this into the notepad and save it as messenger.bat

@echo off

color 0a

title Chat Messenger

echo Hi, welcome to the chat program!

echo.

set /p username=Enter Your Name:

echo %username% had joined! >>join.dat

:message

set /p message=Say:

goto :send

:send

echo %username%: %message% (%time%)>> log.dat

goto :message

Either type, copy, or download from this link: https://drive.google.com/file/d/0B49gQ2qjqc5dcmNqY...

The Code (2)

receiver.PNG

Type this into a new document and save it as receiver.bat

@echo off

color 0a

:read

cls

type join.dat

echo.

type log.dat

echo.

timeout /t 1

goto :read

Download Link:

https://drive.google.com/file/d/0B49gQ2qjqc5dUDdaT...

Be sure to save this in the same folder as the other program.

Try It!

FE0VMZEI6NI6PE4.png

Now just open both programs, type in your name, and say something. Boom! You just made a chat program. Now all you have to do to chat with others is share the folder with them! To share the folder... Right click the folder and press share. Now specify who on the network you are sharing it with and press apply and done. How this works is the messenger makes a document and the receiver reads the document and types it on the screen.