Messenger Chat

424 7 7
                                        

This is a chat group that you can use that features passwords and usernames and a killer first background I tried my best to make it simplistic. You can put this on a USB or a cd rom so let's get started!

@Echo off
Color 0a
Title Group Chat
:A
cls
(okay here is where you put the background go onto text to image and click convert then press ascii and choose a image you want to convert. Next cop and paste it in here)
Pause >nul
Cls
Echo Welcome to Login
Set /p user=username:
Set /p pass=password:
If "%user%"=="Jack" if "%pass%"=="4495" goto B
If "%user%"=="Jim" if "%pass%"=="4495" goto B
Cls
Echo Incorrect Username or Password. Access Denied!
Ping 1.1.1.11 -n 1 - w 4000 >nul
goto :A
:B
cls
Echo %user% has joined>>join.dat
:message
Set /p message=Say:
goto send
:send
Echo %user%: %message% (%time%) >>log.dat
goto message

And finished. The log. Dat that should be on the same line not underneath, Furthermore when you add your image remember to put echo
You must put the echo and space after it.

To sign in put either jack or jim and the password is 4495 after that you get into it and you can say whatever you like and when your done just click off it and it will save. After you finished where ever you've saved it two txt documents will be created saying who's joined and the other one saying what they said.
And you can put this on a USB and share it with your friends and if you want a massive group chat just copy the if user bit and add a different name to it.

I hope you enjoyed this and I hope you can add your own touches to it and branch it out.

Sources:
BatchfileGeek
(for part of the code)

Batch File ProgrammingWhere stories live. Discover now