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.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: 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

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=

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!

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!

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    13 Discussions


    6 years ago on Introduction

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


    10 years ago on Introduction

    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.


    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


    11 years ago on Introduction

    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.

    1 reply

    Reply 10 years ago on Introduction

    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!


    11 years ago on Introduction

    Yeah I actually have the enlish Wikipedia site ( 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.


    11 years ago on Introduction

    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