Chat Program

16,875

461

56

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

    • PCB Contest

      PCB Contest
    • Toys Contest

      Toys Contest
    • Warm and Fuzzy Contest

      Warm and Fuzzy Contest

    56 Discussions

    0
    None
    Nate Oaks

    3 years ago on Introduction

    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
    0
    None
    RileyP11

    7 months ago

    this isn't real!

    0
    None
    RileyP11

    7 months ago

    But it doesn't work!

    0
    None
    ishu1000

    3 years ago

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

    1 reply
    0
    None
    Givo_29

    3 years ago

    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.

    0
    None
    Nate Oaks4418biki

    Reply 3 years ago

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

    0
    None
    Anbu8366

    3 years ago

    awesome I'm gonna try this

    0
    None
    MrCombobulouse

    3 years ago

    Do i need to make the reciever file public?

    0
    None
    MrCombobulouse

    3 years ago

    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
    0
    None
    Nate OaksMrCombobulouse

    Reply 3 years ago

    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.

    0
    None
    Nate OaksMrCombobulouse

    Reply 3 years ago

    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"

    0
    None
    ishu1000

    3 years ago

    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
    0
    None
    Nate Oaksishu1000

    Reply 3 years ago

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