Introduction: Batch Wikipedia Searcher

Picture of Batch Wikipedia Searcher

Do you hate having to go through so many web pages just to look something up on Wikipedia? You could just set the English Wikipedia to your home page, or you could do this!

It is a simple batch file that asks for the search topic, then brings you to the Wikipedia entry on that topic.

Step 1: Making the Batch File

Picture of Making the Batch File

First you want to make your batch file, this is very simple and many of you will already know how to do this.

First, open up a notepad document.
Go to -File-, -Save As...-, then in the 'File name' textfield, type in 'WikipediaSearcher.bat'. The name doesn't matter, but .bat is essential.
Remember to switch 'Save as type:' to 'All Files' from 'Text Documents'

Step 2: Putting the Code In

Picture of Putting the Code In

Navigate to the wherever you saved your Batch File, then right click and 'Edit' it.

This is the code I used, as you can see it is quite simple:

@echo off
Color 0a
Title Wikipedia Searcher
echo Enter your search topic:
set /p topic=
start http://en.wikipedia.org/wiki/%topic%

Basically it prompts you for a search topic, saves that as a variable topic, then starts a webpage ending in that topic.

Step 3: Test It Out!

Picture of Test It Out!

To test, just double click on the batch file, type in the topic, and hit enter!

IMPORTANT: If you want to enter a topic with MORE than one word, put in underscores instead of spaces.
For example, enter West_highland_white_terrier instead of west highland white terrier.

Thanks for reading!

Comments

Pratik Sonigra (author)2016-05-14

You can also see the code from

http://codeitoff.blogspot.in/2016/02/wikipedia-searcher.html

And for space use underscore.

thanks.

ygoetz (author)2012-11-24

It don't works if there is a "space" in %topic% !

account3r2 (author)2010-07-08

i changed the code so it searches bing

g3lrod (author)account3r22012-11-23

Can you make one for google?

Puus (author)2009-08-26

For everyone saying there's other ways, well for us who are trying to get more into batch files I think it's fun just knowing how to. Even though I knew this, easy batches like these helped me when I started in the beginning.

ithinkibrokeit (author)2009-08-17

this is awesome! I found this so useful i wrote a visual basic script so it has a search box i can post the script if anyone is interested

shooby (author)2008-05-03

In firefox, you can just type "wiki [search term]" in the address bar, hit enter, et voila, you find what you were looking for. That's because in firefox, terms entered in the address bar are searched for, and the browser directs you to the first google search webpage, unless the term is too obscure/the match is not good enough.

berserk (author)shooby2009-04-23

Hah. And I thought it was fun and tongue-in-cheek to make a batch file to search wikipedia, but this little nugget was definitely worth coming for!

dan_rocha (author)2009-02-27

Wikipedia already have a -real- search tool!

fredricksburgthethird (author)2008-05-13

would it be possible to just see the text of a website in the bat window?

Jackhole (author)2008-05-04

Yeah I actually have the enlish Wikipedia site (http://en.wikipedia.org/wiki/Main_Page) as the page my bookmark sends me too, but I really made this Instructable so people can adapt it to some other site this would work on.

And wow, I learn more and more things about Firefox everyday.

theRIAA (author)2008-05-03

i know its annoying, but you can search english wikipedia on their homepage by default under the big puzzle globe... or usually just googleing "wiki" or "(topic here) wiki" works good as well

thehappytent (author)2008-05-03

or just use wiki: in google...

About This Instructable

3,213views

5favorites

More by Jackhole:Javascript Bookmarks, for Iphones/Ipod TouchesBatch Wikipedia Searcher
Add instructable to: