Chat Program

16,598

460

56

Introduction: 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!

Step 1: Open Notepad

First, you need to open "Notepad". Just press the Windows button and search notepad.

Step 2: 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

Step 3: 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.

Step 4: 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!

Share

    Recommendations

    • Tiny Home Contest

      Tiny Home Contest
    • Metalworking Contest

      Metalworking Contest
    • Creative Misuse Contest

      Creative Misuse Contest

    56 Discussions

    Sice some of you are having trouble with this, you can download it from this link:

    https://drive.google.com/file/d/0B49gQ2qjqc5dcmNqY08zSzFhNXM/view?usp=sharing

    https://drive.google.com/file/d/0B49gQ2qjqc5dUDdaTmhuaktTaFE/view?usp=sharing

    1 reply

    this isn't real!

    But it doesn't work!

    Which language have you used in this program. please tell .

    1 reply

    i made this but i found having to have 2 different tabs opened a little annoying so i put it all together:

    @echo off

    color 0b

    title Chat Messenger v1

    echo Hi, welcome to the chat program!

    echo.

    set /p username=Enter Your Name:

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

    set /p message=Say:

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

    type join.dat

    echo.

    type log.dat

    goto message

    :message

    cls

    type join.dat

    echo.

    echo.

    type log.dat

    set /p message=Say:

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

    cls

    type log.dat

    goto message

    Hope it helps for those who found it annoying too.

    You can download the program's form my links and just click them twice.

    awesome I'm gonna try this

    Do i need to make the reciever file public?

    How does it send the message to another computer?

    It is a great program. I have not tried it, but i have added some user features, such as username and password protected profiles, admin control, and made the chatting a bit nicer.

    Thanks

    4 replies

    I'm glad that you had some fun with this program, how it works is the messenger makes a file that stores information that has been typed, and the receiver just types it onto the screen.

    Sure! Just email them to me at oakdna3@hotmail.com

    Be sure to vote for me in the coded creations contest, look for "Chat Program"

    I have done it but it is showing
    " 'timeout' is not recognised as an internal or extenal command, operator program or batch file. what should i do. help me

    1 reply

    This is a batch file program. Instead of copying and pasting try the download links. This should fix the problem.