Introduction: Simple CMD/PHP Chat!

About: I like programming and robotic!

Hi! In this tutorial I will show you how to make a simple chat!

Step 1: Code 1

Open notepad and write this:

@echo off
color 0a

title Chat

echo Hi, welcome to Chat!

echo.

set /p username=Enter your name:

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

:message

set /p message=Say:

goto :send

:send

echo.

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

goto :message

Now save this as Chat.bat

Step 2: Code 2

Open a new file in notepad and write this:

@echo off
color 0a

:read

cls

type join.dat

echo.

type log.dat

echo.

timeout /t 2

goto read

Save this document as reciver.bat

Step 3: How to Make the Chat to Work?

Ok!

Now we need to open both tabs!

And that's it! I hope you succeeded and you liked it!

Here are the