Chat Program
Please vote for me in the Microsoft Code Contest here:
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
First, you need to open "Notepad". Just press the Windows button and search notepad.
The Code (1)
Now this may seem hard to understand or difficult to comprehend, but it's not. If you don't want to type all of this, just copy paste. There are two programs that need to be in the same folder that we will make. This is the first.
Warning: This is the messenger part of the programs.
@echo off
color 0b
title Chat Messenger
echo Hi, welcome to the chat program!
echo.
set /p username=Enter Your Name:
echo %username% has joined! >> join.dat
:message
set /p message=Say:
goto send
:send
echo %username%: %message% (%time%)>> log.dat
goto message
Now, copy this into notepad and save it in folder. Name the file as messenger.bat
The Code (2)
This is the receiver part of the code, save this as receiver.bat in the same folder.
Warning: This is the receiver part!!!
@echo off
color 0b
:read
cls
type join.dat
echo.
type log.dat
echo.
timeout /t 2
goto read
Save in the same folder as the other program.
Try Them Out!!! :)
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!