Code
::Personal menu
::Updated version with much better coding
::
@echo off
title Michiel's personal menu
color b
cls
::enter the menu by putting in password and full name
::
:password
set input=
set /p input=Password
if %input%==qwerty123 goto accepted
if not %input%==qwerty123 goto wrong
:accepted
cls
echo Password accepted, Welcome Michiel!
set option=
set /p option=Enter your full name for complete acces
if %option%==Michiel goto home menu
if not %option%==Michiel goto password
:wrong
cls
echo Wrong password! Acces denied!
echo.
echo.
goto password
::choose applications
::
:home menu
color a
cls
echo Welcome back Michiel! Choose an Application
echo.
echo ==
echo.
echo.
echo 1) Mijn Documenten
echo 2) Website's
echo 3) toepassingen
echo 4) exit
echo.
echo.
echo ==
echo.
set value=
set /p value=Select an option
if %value%==1 goto documents
if %value%==2 goto website
if %value%==3 goto toepassingen
if %value%==4 goto exit
if !value! lss 1 (
set infoMessage=Invalid option, enter a number between 1 and 4
goto home menu
)
if 'value! gtr 4 (
set infoMessage=Invalid option, enter a number between 1 and 4
goto home menu
)
::vieuw the folder My Documents
::make a choice between the folders in the My Documents folder
::
:documents
title My documents
cls
echo Documents
echo.
echo ==
echo Select an option
echo.
echo.
echo 1)school
echo 2)ps3
echo 3)video
echo 4)hack
echo 5)go back
echo.
echo ==
echo.
set var=
set /p var=Select an option
if %var%==1 goto school
if %var%==2 goto ps3
if %var%==3 goto video
if %var%==4 goto hack
if %var%==5 goto home menu
if !var! lss 1 (
set infoMessage=Invalid option, enter a number between 1 and 5
goto documents
)
if !var! gtr 5 (
set infoMessage=Invalid option, enter a number between 1 and 5
goto documents
)
:: vieuw the entire school folder
:: choose between the folders in the school folder
::
:school
title school
cls
echo Welcome to the folder school
echo.
echo 1)Duits
echo 2)Engels
echo 3)Esthetica
echo 4)Frans
echo 5)Geschiedenis
echo 6)Godsdienst
echo 7)Natuurwetenschappen
echo 8)Nederlands
echo 9)go back
echo.
echo.
set op=
set /p op=Select an option
if %op%==1 start C:\Users\Michiel\Documents\SCHOOL\DUITS
if %op%==2 start C:\Users\Michiel\Documents\SCHOOL\ENGELS
if %op%==3 start C:\Users\Michiel\Documents\SCHOOL\ESTHETICA
if %op%==4 start C:\Users\Michiel\Documents\SCHOOL\FRANS
if %op%==5 start C:\Users\Michiel\Documents\SCHOOL\GESCHIEDENIS
if %op%==6 start C:\Users\Michiel\Documents\SCHOOL\GODSDIENST
if %op%==7 start C:\Users\Michiel\Documents\SCHOOL\NATUURWETENSCHAPPEN
if %op%==8 start C:\Users\Michiel\Documents\SCHOOL\NEDERLANDS
if %op%==9 goto documents
if !op! lss 1 (
set infoMessage=Invalid option, enter a number between 1 and 9
goto school
)
if !op! gtr 9 (
set infoMessage=Invalid option, enter a number between 1 and 9
goto school
)
::open the ps3 folder and go back to documents to make a new pick
::
:ps3
cls
start C:\Users\Michiel\Documents\PS3
goto documents
::open the folder video and go back to documents to make a new pick
::
:video
cls
start C:\Users\Michiel\Documents\VIDEO
goto documents
::open the folder hack and go back to documents to make a new pick
::
:hack
cls
start C:\Users\Michiel\Documents\HACK
goto documents
::vieuw the favourite websites and make a choice to visit one
::
:website
title websites
cls
echo.
echo Welcome to your favourite websites
echo.
echo ==
echo.
echo 1) Google
echo 2) Hack Forums
echo 3) MSN startpagina
echo 4) Mediafire free file hosting
echo 5) Send a fake e-mail
echo 6) Smartschool
echo 7) Facebook
echo 8) Youtube
echo 9) Go back
set inp=
set /p inp=Select an option
if %inp%==1 start http://www.google.be
if %inp%==2 start https://hackforums.net
if %inp%==3 start http://be.msn.com/default.aspx
if %inp%==4 start http://www.mediafire.com/myfiles.php
if %inp%==5 start http://www.gta-parba.yc.cz/meil_fuck.php
if %inp%==6 start http://sjcgent.smartschool.be
if %inp%==7 start http://www.facebook.com
if %inp%==8 start www.youtube.com
if %inp%==9 goto home menu
if !op! lss 1 (
set infoMessage=Invalid option, enter a number between 1 and 9
goto website
)
if !op! gtr 9 (
set infoMessage=Invalid option, enter a number between 1 and 9
goto website
)
::choose one of the applications/programs to start up
::
:toepassingen
cls
echo.
echo Welcome to your most frequently used applications/programs
echo.
echo ==
echo.
echo 1) Calculator
echo 2) Notepad
echo 3) Command prompt
echo 4) winrar
echo 5) Windows media player
echo 6) Paint
echo 7) Windows Live Messenger
echo 8) Go back
echo.
set val=
set /p val=Select an option
if %val%==1 start calc.exe
if %val%==2 notepad.exe
if %val%==3 start cmd.exe
if %val%==4 start WinRAR.exe
if %val%==5 start wmplayer.exe
if %val%==6 start mspaint.exe
if %val%==7 start msnmsgr.exe
if %val%==8 goto home menu
if !val! lss 1 (
set infoMessage=Invalid option, enter a number between 1 and 9
goto toepassingen
)
if !val! gtr 8 (
set infoMessage=Invalid option, enter a number between 1 and 9
goto toepassingen
)
::the exit and goodbye menu
::information of the maker
::that'll be me :D
::
:exit
title This menu is presented to you by MDSN productions
color b
cls
echo.
echo.
echo This menu was made by MDSN productions
echo.
echo.
echo Thanks for using this and goodbye
echo.
echo.
ping localhost -n 7 >nul
exit