3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to make a simple Batch trivia game

How to make a simple Batch trivia game
This is a very simple way to make a trivia game. I hope you like it. By the way i also posted a trivia game already so if you dont want to make your own just go to this website

http://www.instructables.com/id/Trivia_Game/

the website posted above uses these exact pictures and following steps so i'm pretty much telling you how i made it
 
Remove these adsRemove these ads by Signing Up
 

Step 1Getting Started...

Getting Started...
If you know how to get to notepad go there if you dont then...

first you have to click the "start" button and go to programs, applications, then click on notepad



« Previous StepDownload PDFView All StepsNext Step »
30 comments
May 11, 2012. 3:11 AMKapil Singh says:
it's Very useful
May 11, 2012. 3:10 AMKapil Singh says:
it's really usefull
May 11, 2012. 3:10 AMKapil Singh says:
it's really usefull
Apr 23, 2012. 12:12 PMtheone6666 says:
you guys like mine?


@echo off
color 0a
title haydens game
:menu
cls
echo Do you want to play haydens game?
echo.
echo .....
echo 1 yes
echo 2 no
echo 4 instructions
echo .....

set /p choice=run:
if %choice%==1 goto game
if %choice%==2 goto incorrect
if %choice%==3 goto win
if %choice%==4 goto instructions

:instructions
cls
echo welcome to the trivia game!
echo rules
echo to answer q's pres 12or3
echo (MAY VARY)
pause
goto menu

:Game
cls
echo what color is the sky
echo .........................
echo blue
echo purple
echo green
echo .........................

set /p sky=choice1~3
if %sky%==1 goto correct
if %sky%==2 goto incorrect
if %sky%==3 goto incorrect

:Correct
cls
echo you got it right
pause
goto continued

:Incorrect
cls
echo you got it wrong
pause
goto menu

:continued
cls
echo what does 3+3 equal
echo ...
Jan 6, 2012. 11:19 AMThe Y says:
I have made some matrix codes:
1.
@echo off
:loop
COlor 0A
Title (MATRIX)

echo %random% %random% %random% %random% %random% %random%
echo %random% %random% %random% %random% %random% %random%
echo %random% %random% %random% %random% %random% %random%

Goto :loop and save as .bat

2.
@echo off
title matrix
color 0a
:top
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto top

3.
@echo off
color 2
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto start

save as .bat

Have fun!!!
Nov 3, 2011. 5:46 PMbatchfile101 says:



@echo off
title Are you smarter than a Fifth grader?
cls

:menu
cls
echo ---------------------------------------------------------------
echo Are you smarter than a Fifth grader?
echo ---------------------------------------------------------------
echo [1] The rules of game/how meny lifes you get
echo [2] what is the prize
echo [3] start playing
echo [4] enter code here!
echo [5]
echo.
set /p op=Run:
if %op%==1 goto 1
if %op%==2 goto 2
if %op%==3 goto 3
if %op%==4 goto 4
if %op%==5 goto 5

goto error
:1
cls
echo To play the game you must get as much questions right
echo The point of the game is to get to grade 5 or even farther.
echo you have no lifes if you get 1 QUESTION Wrong you lose.
echo click any key to go back
pause >nul
goto menu
:2
cls

echo At the end of the game you will
echo get a code. Tipe the code were it say "enter code here!"
echo press any key to go back
pause >nul
goto menu
:3
cls
goto menu1



cls
:password
set input=
set /p input=code(enter code):
if %input%==ywn goto YES
if not %input%==cheese goto wrong

:YES
echo You Win Nothing! lol
pause


goto menu
:menu1


echo ---------------------------------------------------------------
echo kindergarden
echo ---------------------------------------------------------------
echo what is your name?
set /p input=
echo you pass k grade!
pause

echo -----------------------------------------------------------------
echo first grade
echo -----------------------------------------------------------------


echo.
echo (math)6+3=?
echo =============
echo.
echo 18
echo 10
echo 9
echo 6
echo none of them
echo.
set /p op=Run:
if %op%==18 goto 1
if %op%==10 goto 2
if %op%==9 goto 3
if %op%==6 goto 4
if %op%==5 goto 5

goto wrong
:1
cls

goto wrong

:2
cls
goto wrong


:3
cls

echo correct

pause
goto menu2
:4
cls
goto wrong


pause
:5
goto wrong


:menu2

echo ____________________________________________________________
echo Grade 2
echo ____________________________________________________________
echo.
echo what is 20+17

echo [1] 37
echo [2] 27
echo [3] 48
echo [4] 1.17
echo [5] 3
echo.
set /p op=Run:
if %op%==37 goto 1
if %op%==27 goto 2
if %op%==48 goto 3
if %op%==1.17 goto 4
if %op%==3 goto 5

:1
cls
echo correct!!!
pause
goto menu3

:2
cls
goto wrong
:3
cls
goto wrong
:4
cls
goto wrong
:5
cls goto wrong
:menu3


echo ____________________________________
echo grade 3!!!!!!!!!!!!!!!!!
echo ____________________________________


echo what two mixtures fizzs and makes Co2
echo.
echo [1] water boiling
echo [2] viniger and baken sota
echo [3] salt and water
echo [4] none of the above
set /p op=Run:
if %op%==1 goto 1
if %op%==2 goto 2
if %op%==3 goto 3
if %op%==4 goto 4

:1
cls
goto wrong
:2
cls
echo correct
Pause
goto menu3
:3
cls
goto wrong
:4
cls
goto wrong

:menu3
echo ____________________________________________
echo grade 4!!!!!!!!!!
echo ____________________________________________

echo what do the lines on the USA flage stand for.
echo.
echo.
echo (tipe a number)
echo [1] the 13 first flages
echo [2] the the 13 wars we had
echo [3] the 13 coleneese
echo [4] none of the above


set /p op=run:
if %op%==1 goto 1
if %op%==2 goto 2
if %op%==3 goto 3
if %op%==4 goto 4

:1
cls
goto wrong

:2
cls
goto wrong
:3
cls
echo correct!!!!
Pause
goto menu4
:4
cls
goto wrong

:menu4


echo ___________________________________________________________
echo Grade 5 !!!!!!!!!!!!!!!!!
echo ___________________________________________________________

echo.
echo.
echo.


echo what does DC (use for batteryed powered devices) stand for? No spaces inputwin the numbers.
echo [1] defective/ [1] current
echo [2] denetic / [2] curcit
echo [3] direct / [3] computer


set /p op=run:
if %op%==31 goto 1
if %op%==32 goto wrong
if %op%==33 goto wrong
if %op%==23 goto wrong
if %op%==22 goto wrong
if %op%==21 goto wrong
if %op%==13 goto wrong
if %op%==12 goto wrong
if %op%==11 goto wrong

:1
cls
echo correct!!
Pause
goto menu5
:2
cls
goto wrong
:3
cls
goto wrong
:4
goto wrong


:5
cls
goto wrong
:menu5
echo now you have an option you can go duble or
echo nothing or be a wimp and take the prize.
echo.
echo.
echo.
echo (tip a number)
echo [1] be a wimp and take the prize
echo [2] go duble or nothing

set /p op=run:

if %op%==1 goto wimp
if %op%==2 goto 2

:wimp
cls
echo press any key to see code.
pause >nul
echo loading please wait... (not that you have any choice)
ping localhost -n 3 >nul
echo code is
ping localhost -n 2 >nul
echo ywn
echo press any key to go back.
Pause >nul
goto menu


:2
cls
echo no going back.

ping localhost -n 1>nul

echo science
cls
echo A _____ is the only fish that can blink with both eyes. (no caps)

set /p op=run:

if %op%==shark goto sright
if %op%==sharks goto sright
goto wrong


:sright
echo correct !!!
echo click any key to get code
pause >nul
echo loading please wait...
ping localhost -n 3 >nul
echo the code is
ping localhost -n 2 >nul
echo ywn
echo click any key to go back to menu
goto menu

:wrong
echo INCORRECT
pause
goto menu




Oct 5, 2011. 2:03 PMneivadan says:
wow i wonder instend of making a trivia game you can use several commands form atriva game to make an rpg based one basicly with the graphics as the symbols on your arrow key but i havent posted yet because considering a high and rpg bacth game takes lot of effort becuase your constantly trying to balnce a level of programing and graphics on your batch rpg game and another thing is use your own batch creavtiviy to make an rpg!!! also a word of warning not all games that put in batch are atcully games because if does has the words delete or something it is a bacth viris!!!!so you have to read the code first before you copy,paste turn em into batch!!!!!!!!!!!
May 21, 2011. 12:36 AMwnoda says:
i made my own program
I'm William Jason Noda
14 yrs old
this a comand

color 0a
title Guess-my-number Created by: William Jason Noda
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo Loading
echo [ ]
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo Loading
echo [[] ]
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo Loading
echo [[][] ]
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo Loading
echo [[][][] ]
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo Loading
echo [[][][][] ]
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo Loading
echo [[][][][][] ]
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo Loading
echo [[][][][][][] ]
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo Loading
echo [[][][][][][][] ]
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo Loading
echo [[][][][][][][][]]
ping localhost -n 2 >nul
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo Loading Successfully
echo [[][][][][][][][]]
ping localhost -n 2 >nul
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
pause
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.

echo Guess my Number
echo.
echo.
echo.
echo.
echo.
echo Created by:William Jason Noda
echo.
echo.
echo.
echo.
pause
:main
color 0a
cls
echo.
echo Welcome to Guess my Number
echo.
echo Mainmenu
echo.
echo Press "1" and press enter to Start
echo Press "2" and press enter to Instruction
echo Press "3" and press enter to Quit
:a
set /p numero=
if %numero% EQU 1 goto start
if %numero% EQU 2 goto help
if %numero% EQU 3 goto quit
if %numero% GTR 3 goto invalid
if %numero% LSS 3 goto invalid

:invalid
cls
color 0c
echo.
echo Sorry wrong code. Try again
echo.
pause
goto main


:help
cls
echo Type the number to guess and press enter.
echo.
echo Would you like to start?
echo.
echo Press "1" and press enter to go start
echo Press "2" and press enter to quit
echo.

:b
set /p letter=
if %letter% EQU 1 goto start
if %letter% EQU 2 goto quit
if %letter% GTR 2 goto invalid2
if %letter% LSS 2 goto invalid2

:invalid2
echo.
echo Sorry wrong code. Try again
echo.
goto b


:start
cls
color 0a
echo.
echo *******************
echo.
echo Guess my Number
echo.
echo 1 - 100
echo.
echo *******************
echo.

:q
set /a guess=1
set /a num=%random%*99/32676+1

:w
set /p g=
if %g% GTR 100 goto wew
if %g% LSS 1 goto wew
if %g% EQU %num% goto win
if %g% GTR %num% goto high
if %g% LSS %num% goto low

:wew
echo.
echo It said 1 - 1000 can only Guess. Try again
echo.
goto w

:win
echo.
echo You win!
echo.
set /a win=%win%+1
goto scoreboard

:high
echo.
echo LOWER!
echo.
set /a guess=%guess%+1
if %guess% GTR 30 goto lose
goto w

:low
echo.
echo HIGHER!
echo.
set /a guess=%guess%+1
if %guess% GTR 30 goto lose
goto w

:scoreboard
cls
echo.
echo Score Board
echo.
echo Score: %win%
echo guess: %guess% /30
echo lose : %lose%
echo.
echo.
pause
goto start

:lose
cls
color 0c
echo.
echo YOU LOSE!!
echo.
pause
goto start

:quit
Jul 20, 2010. 11:59 AMDranwolf says:
hey i set the incorrect answers like you said and for some reason when i type in a incorrect answer it closes the window without goin through the message Help pls this is the code if %yourmom%==1 goto Correct if %yourmom%==2 goto Incorrect if %yourmom%==3 goto Incorrect :Correct cls echo THIS PROVES NOTHING!! pause pause goto continued :Incorrrect cls echo DUMBY!! pause pause goto end :continued cls idk what i did wrong
Jun 5, 2010. 4:57 PMSpade6sic6 says:
Wow. There were some tweaks you could have mentioned. But otherwise a good tut. Heres what I made using this: @echo off color 04 TITLE DEATH echo Hello friend! pause>nul echo. echo. echo. echo. echo Welcome to The End of The Line. echo. echo. echo. pause>nul cls :menu1 echo. echo How would you like to die? echo. echo 1 Chainsaw echo 2 Acid echo 3 Compactor set/p howdie=CHOOSE if %howdie%==1 goto die1 if %howdie%==2 goto die2 if %howdie%==3 goto die3 :die1 cls echo A Chainsaw flies at your face. echo It is held by a mysterious stranger. echo He snickers at you as he cuts your torso in echo half with the speed and precision of a surgeon. echo You now lay lifeless on the cold cement. echo. pause goto menu1 :die2 cls echo You are held in place with staps on your arms and legs. echo You watch the executioner as he carries a strange vile over to you. echo Suddenly you realize what he is about to do. echo As he pours the acid on your thigh, working his way up echo drip, by drip, by drip. echo. echo He splashes the remainder of the acid into your face echo and watches as you scream in agony. echo. pause goto menu1 :die3 cls echo You awake in a dark room. echo You can hardly see your hands in front of your face. echo. echo Suddenly, you hear the loud roar of an electric motor. echo The lights cut on. echo You see two cold, steel panels that reach down the entire corridor. echo. echo You are confused. echo The roar of the motor gets louder and you hear the echo low-pitch hum from a machine. echo. echo You now understand what's going on. echo The two steel panels come closer together; echo the hum of the motor becoming louder as the walls contract. echo. echo As you feel the cold steel make contact with your arms, echo you know this is the end. echo. echo The walls push together and you scream in agony echo as your ribs break one by one. echo. echo The walls stay together, only letting the blood from echo your flattened corpse drip to the bare floor. echo. pause goto menu1 feel free to use this guys, just remember that I made it ^_~
May 14, 2010. 7:29 PMpwnpk23 says:
This is something i made quick
they are 2 of em'
they and apart by %'s
enjoy i made these 100%
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 @echo off
title The matrix choice
echo welcome to the matrix portal.
echo scripted by Cody Tilkins.
pause
cls
echo n
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo ne
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo neo
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo neo,
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo neo, w
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo neo, wa
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo neo, wak
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo neo, wake
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo neo, wake u
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo neo, wake up.
ping 127.45.67.89 -n 1 -w 1 > nul
pause
cls
echo t
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo th
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo the
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo the
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo the m
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo the ma
ping 127.45.67.89 -n 1 -w 1 > nul
cls
echo the mat
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo the matr
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo the matri
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo the matrix
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo the matrix h
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo the matrix ha
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo the matrix has
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo the matrix has y
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo the matrix has yo
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo the matrix has you.
pause
cls
echo c
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo ch
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo cho
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choo
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choos
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose t
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose th
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the b
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the bl
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blu
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue p
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pe
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue peb
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebb
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebbl
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebble
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebble t
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebble to
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebble to r
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebble to re
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebble to ret
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebble to retur
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebble to return
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebble to return b
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebble to return ba
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebble to return bac
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the blue pebble to return back.
pause
cls
echo c
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo ch
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo cho
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choos
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose t
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose th
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the r
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the re
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red p
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pe
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red peb
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebb
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebbl
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebble
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebble t
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebble to
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebble to c
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebble to co
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebble to con
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebble to cont
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebble to conti
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebble to contin
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebble to continu
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebble to continue
ping 127.0.67.89 -n 1 -w 1 > nul
cls
echo choose the red pebble to continue.
echo (answers: red , blue )
set /p answer= I Choose
if %answer%==blue goto blue
if %answer%==red goto red
:blue
echo you wake up, in your office.
echo you wish you chose the red.
pause
exit
:red
echo you battle people who call you mr. anderson.
echo you woop em'.
echo you win!!!!
echo congradulations, you've went through my batch!!!
echo *claps*
pause
exit
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
@echo off
title matrix decode
echo created by cody tilkins
pasue
:top
echo 12473157618418501735719827687423         54651257189635765397163957693765294751
ping 127.45.67.89 -n 1 -w 1 > nul
echo 19858732572093509719865476572647         40968062863529352820953892650975871153
ping 127.45.67.89 -n 1 -w 1 > nul
echo 94783647365914592857843760732543         45453213453621345605345343154545343123
ping 127.45.67.89 -n 1 -w 1 > nul
echo 76564275179376597326596975212657         63597965393276761590689728718561498675
ping 127.45.67.89 -n 1 -w 1 > nul
echo 74718275832758676357384658692654         85721354713857409285992562376021805724
ping 127.45.67.89 -n 1 -w 1 > nul
echo 75874526423810475238436572657257         74265872864717632515615645164454241501
ping 127.45.67.89 -n 1 -w 1 > nul
echo 84637374845217547375615768659576         26587625626525692657726872587092375516
ping 127.45.67.89 -n 1 -w 1 > nul
echo 72358235728546928572746878276567         35873247659862768473873763267973847696
ping 127.45.67.89 -n 1 -w 1 > nul
echo 28765623958678374861653750372675         56486156486948654126465154156115251561
ping 127.45.67.89 -n 1 -w 1 > nul
echo 91014254365725235874327657433567         75973287460277584732768276673289763636
ping 127.45.67.89 -n 1 -w 1 > nul
echo 98324867216576238578167653724525         37587245623486646810798397174782847263
ping 127.45.67.89 -n 1 -w 1 > nul
echo 37187587572183765817359713851689         76861325618653135052786185273651543873
ping 127.45.67.89 -n 1 -w 1 > nul
echo 19375861561635483215632875872950         213857973587395723r7687816471722596614
ping 127.45.67.89 -n 1 -w 1 > nul
echo 11765761578176546173656329677573         02579738242533653284721365723586562141
ping 127.45.67.89 -n 1 -w 1 > nul
echo 49817566579278576132754832758489         72953832175095383294587542757607025791
ping 127.45.67.89 -n 1 -w 1 > nul
echo 17857243765928309547317450910473         43453213456453523094321942940929432942
ping 127.45.67.89 -n 1 -w 1 > nul
echo 10988847616247358775126457534273         31156156416545421351654564561321465445
ping 127.45.67.89 -n 1 -w 1 > nul
goto top
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
May 6, 2010. 1:24 PMrokon234 says:
For all of you saying it doesn't work, this too happened to me on my first .bat file. There may be two sources to your problems. You could be typing it wrong, so just copy paste it into a notepad file; (If the author is okay with that) Or your problem may be that you have the wrong computer; because I tried to make a .bat file using notepad in a Microsoft windows computer, while the .bat codes were for a Windows XP computer. I may post some codes for a Microsoft Windows computer later, if that is the problem.
Oct 3, 2009. 12:44 PMdungeon runner says:
When I run the file, the screen is cluttered with "ECHO is not a recognized command" and other such nonsense. Does anyone know how to fix this?
Mar 7, 2009. 2:08 PMssankoo says:
Kinda good for beginners, though I spotted an error!

On the choice (starwars) if you type something else then 1, 2 or 3, it will also continue. And becouse :correct is on the next line, it will perform the actions as when you got the question right! So if you type in Yes or Hello or even Luke, it will tell you that you are correct!

To fix this you have a few options.
1. Switch the "incorrect" part with the "correct" part, that way it will (if none of the statements(choices) are true) continue to the Incorrect part, wich is of course better then telling you you are correct.
2. After the choices and before the "correct" Label, put an exit command, so it will exit as soon as you make an invalid choice.
3. The best way would be to have it tell the user, he made an invalid choice and maybe even add a goto so that he can choose again. How do we do that? Simple! Change the code(from the last echo ------ till the correct label) like this:

echo - - - - - - - - - - - - - - -
echo.
pause
:choice
cls
echo Who is that little green guy in Star Wars
echo 1 Yoda
echo 2 Darth Vader
echo 3 Luke
set /p starwars=choice1~3
if %starwars%==1 goto Correct
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
echo You have made an invalid choice! Please choose again!
pause
goto choice
:Correct
Feb 17, 2009. 6:28 PMIzzyz says:
It works for me here i'll just add code :

@echo off
color 5d
title Trivia For Dummies
:begin
echo to view Instructions Type 1
echo to play type 2
set /p starwars=choice1~2
if %starwars%==1 goto Correct
if %starwars%==2 goto top
:Correct
cls
echo Type The Number Of The Answer You Think Is Right Then Press Enter
echo type 2 to begin
set /p starwars=choice1~1
if %starwars%==2goto begin
:continued
echo Loading.
ping localhost -n 2 >nul
cls
echo Loading..
ping localhost -n 2 >nul
cls
echo Loading...
ping localhost -n 2 >nul
cls
echo Loading....
ping localhost -n 2 >nul
cls
echo Loading.....
ping localhost -n 2 >nul
cls
echo Loading......
ping localhost -n 2 >nul
cls
echo Loading.......
ping localhost -n 1 >nul
cls
echo Loading........
ping localhost -n 2 >nul
cls
echo Loading.........
ping localhost -n 2 >nul
echo Loading..........
cls
title Trivia For Dummies!
cls
:top
echo.
echo.
echo.
echo.
echo Welcome to Frogman's Trivia!!!
echo.
pause
cls
echo Are You Dumb?
echo 1 Yes!
echo 2 No
set /p starwars=choice1~2
if %starwars%==2 goto Correct
if %starwars%==1 goto Incorrect
:Correct
cls
echo Good, Here We GO!!
pause
goto continued
:Incorrect
cls
echo Sorry This Quiz Isn't For Dumb People Get The Frick Out Of Here!
pause
goto end
:continued
cls
echo if 1+1=2, what is negative one plus positive one?
echo 1 34
echo 2 1234124
echo 3 0
set /p starwars=choice1~3
if %starwars%==1 goto Incorrect
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Correct
:Correct
cls
echo YES
pause
goto continued
:Incorrect
cls
echo You are stupid enough that you got it wrong
pause
goto end
:continued
cls
echo You Have Five Seconds To Choose The Right Answer!!!!!
echo 1DUHHHHHHHHHHH
echo 2 Don't Choose This One!
echo 3 The Right Answer!!!!!!
set /p starwars=choice1~3
if %starwars%==3 goto Correct
if %starwars%==2 goto Incorrect
if %starwars%==1 goto Incorrect
:Correct
cls
echo That Was Close
pause
goto continued
:Incorrect
cls
echo You are stupid enough that you got it wrong
pause
goto end
:continued
cls
echo Chuck Norris!
echo 1 Texas Ranger
echo 2 Retard
echo 3 Awsome!!!!!!!!!
set /p starwars=choice1~3
if %starwars%==1 goto Correct
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
:Correct
cls
echo Ya
pause
goto continued
:Incorrect
cls
echo You are stupid enough that you got it wrong
pause
goto end
:continued
cls
echo Who Is Most Annoying?
echo 1 DEREK
echo 2 Aaron
echo 3 Brian
echo 4 All Of The Above?
set /p starwars=choice1~4
if %starwars%==1 goto Incorrect
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
if %starwars%==4 goto Correct
:Correct
cls
echo CORRECT!!!!!!!!!!!
pause
goto continued
:Incorrect
cls
echo You are stupid enough that you got it wrong
pause
goto end
:continued
cls
echo :) Which Band?
echo 1 Dot Dot Curve
echo 2 maroon 5
echo 3 Linkin Park
set /p starwars=choice1~3
if %starwars%==1 goto Correct
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
:Correct
cls
echo CORRECT!!!!!!!!!!!
pause
goto continued
:Incorrect
cls
echo You are stupid enough that you got it wrong
pause
goto end
:continued
cls
echo Can A Match Box?
echo 1 yes
echo 2 no
echo 3 mabey
echo 4 no but a tin can
set /p starwars=choice1~4
if %starwars%==1 goto Incorrect
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
if %starwars%==4 goto Correct
:Correct
cls
echo CORRECT!!!!!!!!!!!
pause
goto continued
:Incorrect
cls
echo Dumb Itiot
pause
goto end
:continued
cls
echo This Is The End
pause
echo Just KIDDING!!!!!!!!!
pause
cls
echo How Many Questions In This Quiz So Far?
echo 1 8
echo 2 4
echo 3 6
set /p starwars=choice1~3
if %starwars%==1 goto Correct
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
:Correct
cls
echo THAT IS RIGHT!
pause
goto continued
:Incorrect
cls
echo NOOOOOOO!
pause
goto end
:continued
cls
echo Hi
echo 1 Say Hi Back
echo 2 ?
echo 3 YES
set /p starwars=choice1~3
if %starwars%==1 goto Correct
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect

:Correct
cls
echo CORRECT!!!!!!!!!!!
pause
goto continued
:Incorrect
cls
echo You'r Are Sooooo Dumb
pause
goto end
:continued
cls
echo Haskdjsahlkdhfksdhflskdjfhiewaeroiufmdaklsfjdheiwo
echo 1 ??????
echo 2 SQRIBBLE
echo 3 walrus
echo 4 Heiroglyphics for an Itiot
echo 5 ....
set /p starwars=choice1~5
if %starwars%==1 goto Correct
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
if %starwars%==4 goto Incorrect
if %starwars%==5 goto Incorrect

:Correct
cls
echo I Don't Know Either
pause
goto continued
:Incorrect
cls
echo Nope!
pause
goto end
:continued
cls
echo are you dumber than a tin can?
echo 1 YES
echo 2 NO
echo 3 GEORGE CLOONEY!!!
echo 4 MABEY
set /p starwars=choice1~4
if %starwars%==1 goto Incorrect
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Correct
if %starwars%==4 goto Incorrect
:Correct
cls
echo DUHHHHHHHH
pause
goto continued
:Incorrect
cls
echo NO! GET OFF THIS QUIZ!!!!!
pause
goto end
:continued
cls
echo what is the square root of 53?
echo 1 23
echo 2 7.28010989
echo 3 8
echo Be Sure To Check Your Calculator!
set /p starwars=choice1~3
if %starwars%==1 goto Incorrect
if %starwars%==2 goto Correct
if %starwars%==3 goto Incorrect
:Correct
cls
echo Yes, But It Is Prime Thus There Is No Rational Square Root
pause
goto continued
:Incorrect
cls
No Sorry The Square Root Of 53 Is 7.28010989 I told You To Check You're Calculator! I'll Let You Keep Going....
pause
:continued
cls
echo Hot n' Cold
echo 1 Katy Perry
echo 2 Rihanna
echo 3 Linkin Park
set /p starwars=choice1~3
if %starwars%==1 goto Correct
if %starwars%==2 goto Incorrect
if %starwars%==3 goto Incorrect
:Correct
cls
echo Everyone Knows That....
goto Continued
:Incorrect
cls
echo WOW YOU SUCK! WHAT DO U LISTEN TO COUNTRY MUSIC OR SOMETHING??????????!!!!!!!!!!!!?!????!??!?!??!?!?
goto end
:Continued
cls
echo Would You Like To Replay This Quiz?(Y/N)
pause
set /p starwars=choice1~1
if %starwars%==Y goto top
if %starwars%==y goto top
if %starwars%==N goto end
if %starwars%==n goto end
pause
Feb 15, 2009. 9:26 AMIzzyz says:
My Trivia

Sorry Forgot To Add Link
Feb 15, 2009. 9:25 AMIzzyz says:
Thanks For Your Help! This Is MY Trivia!
Jan 25, 2009. 3:31 PMknoxarama says:
doesn't work
Jan 13, 2009. 2:07 PMAzor says:
please post download of file! or email to me at qewqwerty@gmail.com thanks!
Dec 10, 2008. 6:41 PMandrea0701 says:
Very cool!!! Thanks :D
Dec 10, 2008. 6:43 PMandrea0701 says:
Two q's, tho: What do I save it as, and how do I open it??
Dec 11, 2008. 6:25 AMPKM says:
Save it as a .bat file. If you are using XP, turn off "hide extensions for known file types" in Tools -> Folder Options before making the file, it's the lamest "feature" ever and makes tasks like this harder.

If you paste the code into notepad, use File -> Save As..., set the filename to something like trivia.bat (the ".bat" is the important part") and set the file type to all files, not text documents.

You open it by just double-clicking on the file or typing the filename into a command prompt.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
5
Followers
3
Author:computerfaker3