Instructables

Cool Batch Files

Step 2: Portals

Picture of Portals
In the zip. folder in the last step, I give you a portal that goes to instructables.com.
But here, I will show you a batch file that you can customize to go to multiple websites.
 
Here it is:

@echo off
color 0a
echo This is the site locater. Choose the # of the site you would like to go to.
echo 1= www.youtube.com
echo 2= www.facebook.com
echo 3= www.internet explorer.com
echo 4= www.firefox.com
echo 5= www.hulu.com
echo 6= www.netflix.com
echo.
set/p "number=-->"
if %number%==1 GOTO 1
if %number%==2 GOTO 2
if %number%==3 GOTO 3
if %number%==4 GOTO 4
if %number%==5 GOTO 5
if %number%==6 GOTO 6
:1
start www.youtube.com
goto end
:2
start www.facebook.com
goto end
:3
start www.internetexplorer.com
goto end
:4
start www.firefox.com
goto end
:5
start www.hulu.com
goto end
:6
start www.netflix.com
goto end
:end


You may replace the listed websites with any of your own if you want.




 
Remove these adsRemove these ads by Signing Up
lizzyd7101 year ago
I think to do that you would have to replace the URLs with the document adress. Like for Windows you would do C:\Users\Person\Desktop\Programs
Thats my best guess.
tinker2342 years ago
ok thanks
tinker2342 years ago
nice could i use it to acess folders and keep documents
jklujm (author)  tinker2342 years ago
I don't know how, but you probably could.
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!