Introduction: Website Selector

Picture of Website Selector

Hello everyone I came up with this simple but very useful batch file.
Copy the Text you see below and then paste it to notepad and save it as .bat
FOR EXAMPLE===> Website Selector.bat
COPY
  ll
  \/

@echo off
title Websites
color 0a
cls
:back
echo now pick a website!!!
echo 1=www.google.com
echo 2=www.youtube.com
echo 3=www.yahoo.com
echo 4=www.facebook.com
echo 5=www.twitter.com
echo 6=www.instructables.com
SET /p pick=
if %pick%==1 goto 1
if %pick%==2 goto 2
if %pick%==3 goto 3
if %pick%==4 goto 4
if %pick%==5 goto 5
if %pick%==6 goto 6
:1
start www.google.com
goto stuff
:2
start www.youtube.com
goto stuff
:3
start www.yahoo.com
goto stuff
:4
start www.facebook.com
goto stuff
:5
start www.twitter.com
goto stuff
:6
start www.instructables.com
goto stuff
:stuff
echo press 1 to go back to choosing a website or 2 to exit
SET /p go=
if %go%==1 goto back
if %go%==2 goto exit
:back
goto back
:exit
goto end
:end
exit

Comments

el-xavi26 (author)2012-10-26

Lol sure wokandal !!!

Prof. Pickle (author)2012-09-18

Nice work. May I suggest you add another option, perhaps you should let them (the users) choose what site they would want (through option 7: other). This could be accomplished by setting their preferred website address as a variable (let's call it "other") and then using the code "START %other%", and to check if it worked "IF %ERRORLEVEL% NEQ 0 echo The website didn't open because of an error, maybe it was because you typed the address wrong."

But other than that, nice work!

el-xavi26 (author)Prof. Pickle2012-09-20

Thank you this is my first instructable i will be making the changes soon but i working in a new project that is taking very long to complete.

PS
if you will like to help message me the new batch file is about talking to your computer so i will be happy if you helped me.

Prof. Pickle (author)el-xavi262012-09-20

It would be my pleasure to help you. But, I don't really think your idea (although amiable) is going to work. Maybe through the use of VBscripts. I'll look around and see what I can find.

I've looked around and the answer is no. I couldn't find anything that is relevant.

Making the computer speak to you on the other hand is quite easy.

el-xavi26 (author)Prof. Pickle2012-09-20

So we should make something else do you have any suggestion?

Prof. Pickle (author)el-xavi262012-09-20

I'm trying to work on a batch, text-based RPG game called "Batch Quest". I could use some help if your interested but it is going to be in depth and monotonous. If your are in you can't back out half way through.

el-xavi26 (author)Prof. Pickle2012-09-21

Sure I will help!! I love text-based games!

Prof. Pickle (author)el-xavi262012-09-21

I will post you the skeleton soon and tell you what I need done.

About This Instructable

571views

2favorites

License:

More by el-xavi26:Website selector
Add instructable to: