Website Selector

Intro: 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

Share

    Recommendations

    • Electronics Tips & Tricks Challenge

      Electronics Tips & Tricks Challenge
    • Audio Contest 2018

      Audio Contest 2018
    • Plastics Contest

      Plastics Contest

    10 Discussions

    0
    None
    Yuuto

    4 months ago

    The website selector is very nice.

    And the start command also works in apps such as chrome.exe or firefox.exe

    0
    None
    Prof. Pickle

    6 years ago on Introduction

    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!

    7 replies
    0
    None
    el-xavi26Prof. Pickle

    Reply 6 years ago on Introduction

    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.

    0
    None
    Prof. Pickleel-xavi26

    Reply 6 years ago on Introduction

    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.

    0
    None
    Prof. Pickleel-xavi26

    Reply 6 years ago on Introduction

    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.