Get me outta here!

Sunday, 25 March 2012

Site Selector Batch File Trick.




Hello Friends,Once again I am back with my Batch File Tricks. This Time its Something New.

By Using this Batch File,You can directly press the selected number of site and Boom! There opens a Website.

So the Codes are Simple Just Copy the Below codes into Notepad and save the notepad file as Site Selector.bat or *.bat 


Note: The File name must end with a .bat extension.


Code-

@echo off
color 2f
title Site Selector by Kanishk
:top
echo ***************************************************************
echo.
echo Site Selector
echo.
echo ***************************************************************
echo.
echo Key: [1] Google - Search Engine
echo [2] Kanishk's Technical Blog- A Blog by Kanishk Singh

echo [3] Hotmail - Mail Server
echo [4] Yahoo - Search Engine/Mail Server
echo [5] Facebook - Social Networking
echo [6] Myspace - Social Networking
echo [7] CNN - News
echo [8] Weather - Weather
echo [9] WikiHow - A How-To Website
echo [10] Instructables - A How-To Website
echo [11] YouTube - Online Videos
echo [12] Answers - Online Encyclopedia
echo [13] 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.kanishksinghtechy.blogspot.com

if %udefine%==3 start www.hotmail.com
if %udefine%==4 start www.yahoo.com
if %udefine%==5 start www.facebook.com
if %udefine%==6 start www.myspace.com
if %udefine%==7 start www.cnn.com
if %udefine%==8 start www.weather.com
if %udefine%==9 start www.wikihow.com
if %udefine%==10 start www.instructables.com
if %udefine%==11 start www.youtube.com
if %udefine%==12 start www.answers.com
if %udefine%==13 start www.wikipedia.com
if %udefine%==e goto exit

cls
echo ***************************************************************
echo.
echo Thank You for using Site Selector by Kanishk
echo.
echo ***************************************************************
echo Type [e] to exit or [b] to go back and select another site.
echo.
set /p udefine=
echo.
echo ***************************************************************
if %udefine%==b goto top
if %udefine%==e goto exit
:exit
cls
echo ***************************************************************
echo.
echo Thank You for using Site Selector by Kanishk
echo.
echo ***************************************************************
pause
exit 



After you save the Notepad File as Site Selector.bat Excute it and the screen Shown above will Come.

This is How it Looks upon Opening-


Tip: After Saving this File.Paste a Shorcut of it on your Desktop so that everytime you wanna visit your favourite site,You don't have it Wait.


FOR ANY DOUBTS,COMMENT BELOW.


This Post by-
KANISHK SINGH

0 comments:

Post a Comment

Due to the permanent shut down, I rarely visit the blog. Don't expect answers to your queries very soon.
-Kanishk