It is a simple batch file that asks for the search topic, then brings you to the Wikipedia entry on that topic.
Step 1Making the Batch File
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'
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 2Putting the code in
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 3Test 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!
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!
No comments:
Post a Comment