Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title Start
- color 1f
- :start
- echo Do you have a program account?
- set /p userin1=
- if '%userin1%'=='no' goto new user
- if '%userin1%'=='yes' goto begin1
- if '%userin1%'=='Yes' goto begin1
- if '%userin1%'=='No' goto new user
- else echo You did not write "yes" or "no". Please try again, by restarting the file..
- :new user
- title Register
- cls
- set /p username=Please enter your Username
- set /p password=Please enter your Password
- echo %username%>username.txt
- echo %password%>password.txt
- cls
- goto begin1
- :old user
- goto password
- :begin1
- cls
- title Log In
- set /p userin2=<username.txt
- set /p userin3=<password.txt
- set /p userin4=Username:
- set /p userin5=Password:
- if '%userin4%'=='%userin2%' goto password
- if not '%userin4%'=='%userin2%' goto begin1
- :password
- if '%userin5%'=='%userin3%' goto begin2
- if not '%userin5%'=='%userin3%' goto begin2
- if not '%userin5%'=='%userin3%' goto begin1
- :begin2
- cls
- title Choose App
- echo Welcome %userin2%
- echo Currently we only have three apps. Please write:
- echo [c] then enter to open Calculator
- echo [g] then enter to open Guessing Game
- echo [s] then enter to open Site Selector.
- set /p pressed=
- if %pressed%==c goto calculator
- if %pressed%==g goto guessgame
- if %pressed%==s goto siteselector
- else echo Sorry, but this app is not yet made.
- :calculator
- title Batch Calculator
- color 1f
- cls
- :top1
- echo --------------------------------------------------------------
- echo Welcome to Batch Calculator
- echo --------------------------------------------------------------
- echo NOTE: Only works on whole numbers
- echo Please write a calculation, then press enter.
- echo .
- set /p sum=
- set /a ans=%sum%
- echo.
- echo = %ans%
- echo --------------------------------------------------------------
- pause
- cls
- echo Previous Answer: %ans%
- goto top1
- cls
- echo Would you like to go back to choosing apps?
- echo NOTE: saying "no" will run the game again
- set /p pressed=
- if '%userin1%'=='no' goto calculator
- if '%userin1%'=='yes' goto begin2
- if '%userin1%'=='Yes' goto begin2
- if '%userin1%'=='No' goto calculator
- :guessgame
- cls
- color 0e
- title Guessing Game
- set /a guessnum=0
- set /a answer=%RANDOM%
- set variable1=surf33
- echo -------------------------------------------------
- echo Welcome to the Guessing Game!
- echo.
- echo Try and Guess my Number!
- echo -------------------------------------------------
- echo.
- :top2
- echo.
- set /p guess=
- echo.
- : Don't worry I barely understood this part either
- if %guess% GTR %answer% ECHO Lower!
- if %guess% LSS %answer% ECHO Higher!
- if %guess%==%answer% GOTO EQUAL
- set /a guessnum=%guessnum% +1
- if %guess%==%variable1% ECHO Found the backdoor hey?, the answer is: %answer%
- goto top2
- :equal
- echo Congratulations, You guessed right!!!
- echo.
- echo It took you %guessnum% guesses.
- echo.
- pause
- cls
- echo Would you like to go back to choosing apps?
- echo NOTE: saying no will run the game again
- set /p pressed=
- if '%userin1%'=='no' goto guessgame
- if '%userin1%'=='yes' goto begin2
- if '%userin1%'=='Yes' goto begin2
- if '%userin1%'=='No' goto guessgame
- :siteselector
- cls
- color 2f
- title Site Selector
- :top3
- echo ***************************************************************
- echo.
- echo Site Selector
- echo.
- echo ***************************************************************
- echo.
- echo Key:
- echo [1] Google - Search Engine
- echo [2] Gmail - Email Service
- echo [3] Yahoo - Search Engine/Mail Server
- echo [4] Facebook - Social Networking
- echo [5] Myspace - Social Networking
- echo [6] BBC - News
- echo [7] Weather - Weather
- echo [8] WikiHow - A How-To Website
- echo [9] Instructables - A How-To Website
- echo [10] YouTube - Online Videos
- echo [11] Answers - Online Encyclopedia
- echo [12] Wikipedia - Online Encyclopedia
- echo.
- echo [e] Exit
- echo.
- echo ***************************************************************
- echo Enter the number of the website which you would like to go to:
- echo.
- set /p udefine=
- echo.
- echo ***************************************************************
- if %udefine%==1 start www.google.com
- if %udefine%==2 start www.gmail.com
- if %udefine%==3 start www.yahoo.com
- if %udefine%==4 start www.facebook.com
- if %udefine%==5 start www.myspace.com
- if %udefine%==6 start www.bbc.co.uk
- if %udefine%==7 start www.weather.com
- if %udefine%==7 start www.wikihow.com
- if %udefine%==9 start www.instructables.com
- if %udefine%==10 start www.youtube.com
- if %udefine%==11 start www.answers.com
- if %udefine%==12 start www.wikipedia.com
- if %udefine%==e goto exit
- cls
- echo ***************************************************************
- echo.
- echo Thank You for using Site Selector
- echo.
- echo ***************************************************************
- echo Type [e] to exit, [b] to go back and select another site, or [c] to select a different application.
- echo.
- set /p udefine=
- echo.
- echo ***************************************************************
- if %udefine%==b goto top3
- if %udefine%==e goto exit
- if %udefine%==c goto begin2
- :exit
- cls
- echo ***************************************************************
- echo.
- echo Thank You for using Site Selector
- echo.
- echo ***************************************************************
- pause
- cls
- echo Would you like to go back to choosing apps?
- echo NOTE: saying no will run the game again
- set /p pressed=
- if '%userin1%'=='no' goto siteselector
- if '%userin1%'=='yes' goto begin2
- if '%userin1%'=='Yes' goto begin2
- if '%userin1%'=='No' goto siteselector
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement