Introduction: Simple Chat Program in Batch
I'll Show you today how to make a simple batch program. I believe batch is one of the simplest language(is it??) of it's kind. Watch the video An you'll understand it. I had explained all the line but the quality of video is not as much as I thought I'll try to make it betteHer's the video
r
Step 1: Let's Setup Something..
To get started for this project you just need knowledge in batch file programming and a simple text editor.
For the text editor, you can simply go with notepad but I recommend you go with notepad++. You can download it from here : Notepad++7.4.1. As batch file will only run on windows (As it's the command line for windows), I believe you have ms windows(I said this as some people use linux distributions or mac or other os).
Step 2: Let's Start Coding...
If you don't like coding then jump to last step....
Now for those who love coding let's move on..
What we are going to do is pretty simple.
First We'll get inputs from user.
Second We'll put it in a text file
Third Using another program we'll read it.
Which means we need 2 programs: one to write and one to read.
Let's see the First code. You can download it from here.
See the video where i explain every line..
Step 3: Code to Write.. Don't Forget to Save With .bat Extension
@echo off title Chat :reg set /p "name= Enter your name: " echo %name% Joined the chat (%time%::%date%) >> log.cdat cls start read.bat :mes set /p "message=>>" echo %name%:%message%>>mes.cdat cls goto mes
Attachments
Step 4: The Program to Read
@echo off
title Messages
:read
type log.cdat
type mes.cdat
timeout /t 1
cls
goto read
You can download it from here..
Step 5: For the Lazy Guys Like Me
If you are lazy, like me to do all this, Then just run the program below it'll do all the things you just don't have to care about... it
9 Comments
Question 5 years ago on Introduction
@echo off
Title Superman's Chat Room
color 0e
:top
echo ===Superman's Chat Room===
ECHO 1 - access chat room via password
ECHO 2 - access for Hackers
ECHO 3 - get into the chat room without password
ECHO 4 - Exit
SET /P OPT=Please make a selection, and press enter:
if %OPT%==1 GOTO OPTION1
if %OPT%==2 GOTO OPTION2
if %OPT%==3 GOTO OPTION3
if %opt%==4 GOTO OPTION4
:OPTION1
GOTO PASS
ECHO Redirect to Password input
:OPTION2
ECHO Redirect for Hackers
ping -n 2 127.0.0.1>nul
color c
echo ==============================================================================
echo Come on I know you are better than that, come on your a hacker crack the code!
echo ==============================================================================
ping -n 2 127.0.0.1>nul
ping -n 192.168.128.106>nul
echo ACCESS
pause
exit
:OPTION3
echo Free Access Granted
color c
ping -n 2 127.0.0.1>nul
ping -n 192.168.128.106>nul
echo ================================================================
ECHO Do you think I would actually let you get in without a password?
echo ================================================================
ping -n 2 127.0.0.1>nul
ping -n 192.168.128.106>nul
echo ACCESS Granted
pause
Exit
:OPTION4
echo Are you sure you want exit?
echo no
echo type no
set input=
set /p input=
if %input%== y goto y
if %input%== n goto n
:y
echo yes
pause
exit
:n
echo no
echo redirect to menu
ping -n 2 127.0.0.1>nul
ping -n 192.168.128.106>nul
CLS
goto top
:PASS
ECHO Enter the correct CORRECT password
set /p pass=password:iloveporn12345
if %pass%==iloveporn12345 goto Access Granted
Cls
COLOR C
echo.
echo ACCESS Granted
ping -n 2 127.0.0.1>nul
ping -n 192.168.128.106>nul
EXIT
cls
goto pass
:Access Granted
color a
echo Access Granted, Welcome.
pause
color a
echo Instructions: Type the Ip address of the person you want to talk to enter the chat room,
echo type it after "MESSENGER" after you enter the chat room.
pause
echo For "experienced" users hold the down the down arrow until you reach the Chat Room.
echo if you are not farmiliar with "Superman's Chat Room" than press any key once for the instructions.
Pause
echo Step 1) To find your IP addres open up command prompt in the Start Menu for windows users.
Pause
echo Step 2) Type "ipconfig" as soon as it opens.
Pause
echo Step 3) Record the IP address, and type it after the word "messenger"192.168.128.106:
Pause
echo Step 4) Begin chat room use
Cls
color c
pause
echo this code was created by Superman
pause
Cls
echo !!! Warning! this code was not created nor intended for illegal use!!!
echo This is your last chance to close this program or you will be entering the chat room!
pause
Cls
echo Entering Chat Room
pause
:A
Cls
echo MESSENGER
set /p n=User:
set /p m=Message:
net send %n% %m% 2>nul||echo Your message did not go through && pause
Pause
Got` o A
log
echo Please login to continue. set /p usern=Username:jimgreenobigcock set /p passwd=Password: cd"C:\\Logs": set /p user=Username:jimgreenobigcock set /p pass=Password:ilovepon12345 echo Username="%user%" Password="%pass%" >Log.txt echo=>=>=> echo in= is -not- a- command,- but- part -of- the -syntax -of- the-for- command: echo IF =has- no- in% goto authGood% echo if = %usern%==%usern% in signup.cmd && %passwd%==%passwd% in signup.cmd %goto authGood% goto authBad echo => => => cd docs for /f "delims=" %%i in (users.txt) do set %%i set /p %usern%=%Username%: set /p %passwd%=%Password%: if %usern%==%Username% if %paswd%==%Password% goto authGood echo => => => echo "------- \'DOCS/USERS.TXT\' is not defined." – echo in "delims= "? If yes, remove it. – echo ah - no. I think, you have "delims==" – echo => => => cd "C:\\Logs" set /p %user%=Username:jimgreenobigcock echo pass=Password:ilovepon12345 echo.%api_login.php/ echo.%function=response%; set/p Password="%pass%" >Log.txt echo Username="%user%" Password="%pass%" >Log.txt start https://chaturbate.com//?tour=7Bge&room=//&campaign=zM6MR&room=//&jimgreenobigcock&bgcolor=transparent&disable_sound=0&embed_video_only=1&target=_parent\%27%20height=600%20width=800%20style=%27border:%20none;%27%3E%3C/iframe%3E%20http://chaturbate.com/affiliates/
ABOUTWORKPRESSCONTACT
Alright so im an experienced batch ... Chat Program for Batch! I have a directory for which I want to list all the .doc files with a ;. Your visitors can thus discuss through public and private chat rooms. This is how you save your batch file. Check Multiple if conditions in bat file/ and operator in bat. Alright so im an experienced batch ... Chat Program for Batch! Batch Chat is a simple single file that packs a powerful and easy to use office chat room. (batch file system)(includes related articles) by Tony Roberts. How to Make a Chat Room (With ... and over time I built up knowledge on how to create multiple different operable batch files. Meet Batch Chat, it is ... Batch Chat Enables Instant Chatting Over LAN Network. If you want a private chat with a friend or client on you Network, ... Open the .bat file and in Command Prompt you should see: ... Chat from Command Prompt Need a live free chat for your website ? echo User: %input% > Hi.txt replaces the file echo User: %input% >> Hi.txt appends to the file - at some point, you have to delete it, probably at help chat. If you have any problems contact us in Sobotics room (/rooms/111347). The World's Easiest Office Chat Room. Beautiful batch files. Hello! Simply drop the file into a shared folder and you are ready to go. Batch Chat 1.0 Description: Batch Chat is a simple easy to use office chat room for everyone's use. Chatroom in Batch File Here is the code : @echo off title Chatroom V1:chat color f0 cls echo 1:Create a folder in your Where the New Answers to the Old Questions are logged. ... Batch File Tutorial- How to Make a Batch File Search Engine - Duration: 5:12. phpfreechat is made for you. - Duration: 7:49. Now, I have couple of commands which I would like to hit in that window. You can search for a chat room in the Lync main window, or find a room youre a member of or follow, by looking at the Chat Rooms view. Do-It-Yourself How to make a Chat Room (With Notepad) - do it yourself. I made a simple batch chat that write the message to an txt file. I'm making a simple batch program, that will take input, put it in a file, and display it just like a chat. Make up to 9 dozen cookies in a single batch with the KitchenAid Artisan Series 5 Quart Tilt-Head Stand Mixer. Chat through local networks such as LAN, WLAN, Wifi and others. I have created a .bat file which automatically takes the SSH server (Jump Server) access. How To Make A Simple Chat Room in Batch! I need help with print the file every time it changed and with hidding output. up vote 2 down vote favorite. Meet Batch Chat, it is ... Batch Chat Enables Instant Chatting Over LAN Network. I'm would like to know how I can open a specific file using a specific program with a batch file.
Answer 4 years ago
Sorry, I didn't get you. Can you please explain?
Tip 5 years ago on Introduction
hola soy nuebo
Question 5 years ago on Introduction
@echo off
Title Superman's Chat Room
color 0e
:top
echo ===Superman's Chat Room===
ECHO 1 - access chat room via password
ECHO 2 - access for Hackers
ECHO 3 - get into the chat room without password
ECHO 4 - Exit
SET /P OPT=Please make a selection, and press enter:
if %OPT%==1 GOTO OPTION1
if %OPT%==2 GOTO OPTION2
if %OPT%==3 GOTO OPTION3
if %opt%==4 GOTO OPTION4
:OPTION1
GOTO PASS
ECHO Redirect to Password input
:OPTION2
ECHO Redirect for Hackers
ping -n 2 127.0.0.1>nul
color c
echo ==============================================================================
echo Come on I know you are better than that, come on your a hacker crack the code!
echo ==============================================================================
ping -n 2 127.0.0.1>nul
ping -n 192.168.128.106>nul
echo ACCESS
pause
exit
:OPTION3
echo Free Access Granted
color c
ping -n 2 127.0.0.1>nul
ping -n 192.168.128.106>nul
echo ================================================================
ECHO Do you think I would actually let you get in without a password?
echo ================================================================
ping -n 2 127.0.0.1>nul
ping -n 192.168.128.106>nul
echo ACCESS Granted
pause
Exit
:OPTION4
echo Are you sure you want exit?
echo no
echo type no
set input=
set /p input=
if %input%== y goto y
if %input%== n goto n
:y
echo yes
pause
exit
:n
echo no
echo redirect to menu
ping -n 2 127.0.0.1>nul
ping -n 192.168.128.106>nul
CLS
goto top
:PASS
ECHO Enter the correct CORRECT password
set /p pass=password:iloveporn12345
if %pass%==iloveporn12345 goto Access Granted
Cls
COLOR C
echo.
echo ACCESS Granted
ping -n 2 127.0.0.1>nul
ping -n 192.168.128.106>nul
EXIT
cls
goto pass
:Access Granted
color a
echo Access Granted, Welcome.
pause
color a
echo Instructions: Type the Ip address of the person you want to talk to enter the chat room,
echo type it after "MESSENGER" after you enter the chat room.
pause
echo For "experienced" users hold the down the down arrow until you reach the Chat Room.
echo if you are not farmiliar with "Superman's Chat Room" than press any key once for the instructions.
Pause
echo Step 1) To find your IP addres open up command prompt in the Start Menu for windows users.
Pause
echo Step 2) Type "ipconfig" as soon as it opens.
Pause
echo Step 3) Record the IP address, and type it after the word "messenger"192.168.128.106:
Pause
echo Step 4) Begin chat room use
Cls
color c
pause
echo this code was created by Superman
pause
Cls
echo !!! Warning! this code was not created nor intended for illegal use!!!
echo This is your last chance to close this program or you will be entering the chat room!
pause
Cls
echo Entering Chat Room
pause
:A
Cls
echo MESSENGER
set /p n=User:
set /p m=Message:
net send %n% %m% 2>nul||echo Your message did not go through && pause
Pause
Got` o A
log
echo Please login to continue. set /p usern=Username:jimgreenobigcock set /p passwd=Password: cd"C:\\Logs": set /p user=Username:jimgreenobigcock set /p pass=Password:ilovepon12345 echo Username="%user%" Password="%pass%" >Log.txt echo=>=>=> echo in= is -not- a- command,- but- part -of- the -syntax -of- the-for- command: echo IF =has- no- in% goto authGood% echo if = %usern%==%usern% in signup.cmd && %passwd%==%passwd% in signup.cmd %goto authGood% goto authBad echo => => => cd docs for /f "delims=" %%i in (users.txt) do set %%i set /p %usern%=%Username%: set /p %passwd%=%Password%: if %usern%==%Username% if %paswd%==%Password% goto authGood echo => => => echo "------- \'DOCS/USERS.TXT\' is not defined." – echo in "delims= "? If yes, remove it. – echo ah - no. I think, you have "delims==" – echo => => => cd "C:\\Logs" set /p %user%=Username:jimgreenobigcock echo pass=Password:ilovepon12345 echo.%api_login.php/ echo.%function=response%; set/p Password="%pass%" >Log.txt echo Username="%user%" Password="%pass%" >Log.txt start https://chaturbate.com//?tour=7Bge&room=//&campaign=zM6MR&room=//&jimgreenobigcock&bgcolor=transparent&disable_sound=0&embed_video_only=1&target=_parent\%27%20height=600%20width=800%20style=%27border:%20none;%27%3E%3C/iframe%3E%20http://chaturbate.com/affiliates/
ABOUTWORKPRESSCONTACT
Alright so im an experienced batch ... Chat Program for Batch! I have a directory for which I want to list all the .doc files with a ;. Your visitors can thus discuss through public and private chat rooms. This is how you save your batch file. Check Multiple if conditions in bat file/ and operator in bat. Alright so im an experienced batch ... Chat Program for Batch! Batch Chat is a simple single file that packs a powerful and easy to use office chat room. (batch file system)(includes related articles) by Tony Roberts. How to Make a Chat Room (With ... and over time I built up knowledge on how to create multiple different operable batch files. Meet Batch Chat, it is ... Batch Chat Enables Instant Chatting Over LAN Network. If you want a private chat with a friend or client on you Network, ... Open the .bat file and in Command Prompt you should see: ... Chat from Command Prompt Need a live free chat for your website ? echo User: %input% > Hi.txt replaces the file echo User: %input% >> Hi.txt appends to the file - at some point, you have to delete it, probably at help chat. If you have any problems contact us in Sobotics room (/rooms/111347). The World's Easiest Office Chat Room. Beautiful batch files. Hello! Simply drop the file into a shared folder and you are ready to go. Batch Chat 1.0 Description: Batch Chat is a simple easy to use office chat room for everyone's use. Chatroom in Batch File Here is the code : @echo off title Chatroom V1:chat color f0 cls echo 1:Create a folder in your Where the New Answers to the Old Questions are logged. ... Batch File Tutorial- How to Make a Batch File Search Engine - Duration: 5:12. phpfreechat is made for you. - Duration: 7:49. Now, I have couple of commands which I would like to hit in that window. You can search for a chat room in the Lync main window, or find a room youre a member of or follow, by looking at the Chat Rooms view. Do-It-Yourself How to make a Chat Room (With Notepad) - do it yourself. I made a simple batch chat that write the message to an txt file. I'm making a simple batch program, that will take input, put it in a file, and display it just like a chat. Make up to 9 dozen cookies in a single batch with the KitchenAid Artisan Series 5 Quart Tilt-Head Stand Mixer. Chat through local networks such as LAN, WLAN, Wifi and others. I have created a .bat file which automatically takes the SSH server (Jump Server) access. How To Make A Simple Chat Room in Batch! I need help with print the file every time it changed and with hidding output. up vote 2 down vote favorite. Meet Batch Chat, it is ... Batch Chat Enables Instant Chatting Over LAN Network. I'm would like to know how I can open a specific file using a specific program with a batch file.
5 years ago
Cool!
Reply 5 years ago
Thank you. Its my first and i need your feedback on it.
5 years ago
Thanks for sharing :)
Reply 5 years ago
Please check my blog at https://tinkerbenchlabs.blogspot.com/
Reply 5 years ago
I've been on this project for a month. And I'm happy to say that you are the first commenter..