Another script to make Knowledge Base searches easier

By  

Recently I posted a script you could use to quickly search the Microsoft Knowledge Base using Google. A number of readers indicated they appreciated this hack, so I decided to go one step further and create an HTML page you can save on your computer's hard drive and use to quickly google the KB.

Copy the following text into Notepad and save it as a file named GoogleKB.htm somewhere on your hard drive (I use a folder named C:\scripts for stuff like this):

<html>
<head>
<title>Google the Microsoft Knowledge Base</title>
<!-- Created by Mitch Tulloch, 2008. Version 1.0 -->
<!-- saved from url=(0014)about:internet -->
<script language="VBScript">
<!--
Sub Submit_OnClick
  Dim objForm, strKeyword, strURL
  Set objForm = Document.MyForm
  strKeyword = MyForm.Keywords.Value

  If Len(strKeyword)>0 Then
    strURL = "http://www.google.com/search?hl=en&q=" & strKeyword & _
      "+site%3Asupport.microsoft.com&meta="
    Window.navigate(strURL)
  End if
End Sub
-->
</script>
</head>
<body>
<H2>Google the Microsoft Knowledge Base</H2>
<form name="MyForm">
Enter keywords:
<input name="Keywords" type="TEXT" size="60">
<input name="Submit" type="BUTTON" value="Google it!">
</form>
</body>
</html>

Once you created the GoogleKB.htm file, double-click on it to open it in Internet Explorer and add it to your Favorites (or drag the URL from the Address Bar onto your Links toolbar which is what I prefer doing for URLs I use frequently).

Now whenever you want to search the KB for something, you can type your keywords (or phrases enclosed in quotes) into the textbox and click the "Google It!" button.

Enjoy!

Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Answers - Powered by ITworld

ITworld Answers helps you solve problems and share expertise. Ask a question or take a crack at answering the new questions below.

Ask a Question
randomness