Chat Program

17,420

459

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!

Be the First to Share

    Recommendations

    • Puzzles Speed Challenge

      Puzzles Speed Challenge
    • "Can't Touch This" Family Contest

      "Can't Touch This" Family Contest
    • CNC Contest 2020

      CNC Contest 2020

    56 Discussions

    0
    Nate Oaks
    Nate Oaks

    5 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

    0
    Nate Oaks
    Nate Oaks

    Reply 5 years ago on Introduction

    By the way, these are 2 different links. Just open both and have fun!

    ;)

    0
    RileyP11
    RileyP11

    2 years ago

    this isn't real!

    0
    RileyP11
    RileyP11

    2 years ago

    But it doesn't work!

    0
    ishu1000
    ishu1000

    5 years ago

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

    0
    BenjaminF54
    BenjaminF54

    Reply 3 years ago

    He used note pad in a .bat save

    0
    Givo_29
    Givo_29

    4 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
    4418biki
    4418biki

    4 years ago

    how can i run this programe ,??

    0
    Nate Oaks
    Nate Oaks

    Reply 4 years ago

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

    0
    Anbu8366
    Anbu8366

    5 years ago

    awesome I'm gonna try this

    0
    MrCombobulouse
    MrCombobulouse

    5 years ago

    Do i need to make the reciever file public?

    0
    MrCombobulouse
    MrCombobulouse

    5 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

    0
    Nate Oaks
    Nate Oaks

    Reply 5 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
    MrCombobulouse
    MrCombobulouse

    Reply 5 years ago

    Trust me, I all ready have!

    0
    MrCombobulouse
    MrCombobulouse

    Reply 5 years ago

    Cool! Do you want to see the modified code at a later date?

    0
    Nate Oaks
    Nate Oaks

    Reply 5 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
    ishu1000
    ishu1000

    5 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

    0
    Nate Oaks
    Nate Oaks

    Reply 5 years ago

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