OK, I'm going to assume that you already have batch experience and don't need me to explain every command and every symbol and every thing that is typed. So here we have four
different batch files. If you have no experience with batching, I suggest you try this tutorial:
I'll just wait here.
Step 1: Color Tester
Here is the code for testing colors. It's simple and it can be pretty useful.
echo Type a color code to test colors.
echo To exit, just press the X.
Step 2: Portals
In the zip. folder in the last step, I give you a portal that goes to instructables.com.
But here, I will show you a batch file that you can customize to go to multiple websites.
Here it is:
echo This is the site locater. Choose the # of the site you would like to go to.
echo 1= www.youtube.com
echo 2= www.facebook.com
echo 3= www.internet explorer.com
echo 4= www.firefox.com
echo 5= www.hulu.com
echo 6= www.netflix.com
if %number%==1 GOTO 1
if %number%==2 GOTO 2
if %number%==3 GOTO 3
if %number%==4 GOTO 4
if %number%==5 GOTO 5
if %number%==6 GOTO 6
You may replace the listed websites with any of your own if you want.
Step 3: Guessing Game
This is a guessing game I came up with.
I did not take some other guy's guessing game and make some changes.
This one is rather of its own design.
echo Welcome to this useless two-player game in which one player picks a number
echo between 1 and 100 and the other player tries to guess it. Player 1 makes the
echo number and player 2 tries to guess it. You will be given NO hints or clues.
echo Enter the name for each player.
set/p "pone=Player one>"
set/p "ptwo=Player two>"
echo I SAID a number between 1 and 100!
echo OK %ptwo%, look away. %pone%, type in the number and press enter.
if %deguess% GTR 100 GOTO busted
echo Choose a difficulty, %ptwo%:
echo (1) piece of cake-50 guesses
echo (2) easy-40 guesses
echo (3) moderate-30 guesses
echo (4) a little tricky-20 guesses
echo (5) hard-10 guesses
echo (6) insane-5 guesses
echo (7) impossible!-1 guess
echo Type the number of the difficulty you would like to play.
if %diff%==1 GOTO 1
if %diff%==2 GOTO 2
if %diff%==3 GOTO 3
if %diff%==4 GOTO 4
if %diff%==5 GOTO 5
if %diff%==6 GOTO 6
if %diff%==7 GOTO 7
echo Guess in the space below. You still have %one's% guesses.
if %guess41%==%deguess% GOTO success
if %one's%==0 GOTO failure
echo Guess in the space below. You still have %two's% guesses.
if %guess42%==%deguess% GOTO success
if %two's%==0 GOTO failure
echo Guess in the space below. You still have %three's% guesses.
if %guess43%==%deguess% GOTO success
if %three's%==0 GOTO failure
echo Guess in the space below. You sill have %four's% guesses.
if %guess44%==%deguess% GOTO success
if %four's%==0 GOTO failure
echo Guess in the space below. You still have %five's% guesses.
if %guess45%==%deguess% GOTO success
if %five's%==0 GOTO failure
echo Guess in the space below. You have %six's% guesses left.
if %guess46%==%deguess% GOTO success
if %six's%==0 GOTO failure
echo Guess in the space below. You only have %seven's% guess.
if %guess47%==%deguess% GOTO success
echo Well done, %ptwo%! You may now exit the game.
echo %pone%'s number was too difficult. Sorry, %ptwo%.
echo The number was %deguess%.
Step 4: Timer
A simple timer with a built-in calculator.
echo Welcome to the timer. This timer only counts seconds.
echo Type in the amount of seconds to count. The number may range from 0 to
echo 99,999. If you need help converting minutes into seconds, type c for a
if %time%==c GOTO calc
if %time%==C GOTO calc
if %time% GTR 99999 GOTO bust
echo The time has been set! Press any key to start counting. You can stop the
echo timer by pressing any key. After stoping, the timer cannot continue.
echo Type the math problem below. This calculator doesn't accept decimals,
echo percents, etc. Only whole numbers.
echo Would you like to return to the timer or use the calculator again?
echo c or C= calculator
echo t or T= timer
if %route%==c GOTO calc
if %route%==C GOTO calc
if %route%==t GOTO menu
if %route%==T GOTO menu
If anyone knows how, I'd like to know how to make some noise sound out when the timer
goes off. But only for a short time. I don't want to have it go on infinitely, because that would mean restarting the computer every time I use the timer.
Step 5: Download
Thanks for coming!!!
Here's the download.