|
This tip was printed from the MalekTips Computer and Technology Help and Tips website at http://malektips.com. Windows XP and DOS - Search Google and Other Search Engines from the Command PromptSUMMARY: Create a Windows XP/DOS command line utility that lets a batch file search Google by starting a web browser or displaying the results in a DOS prompt.
Here's an interesting command you can add to your Windows XP and DOS arsenal.
If you download and extract the archive to c:\lynx you can replace the line of the above batch file prefixed by "start" with the following lines. This displays the top search results directly in the DOS prompt (the results may be messy, but they should be readable): call c:\lynx\samples\lynx -nolist -dump "http://www.google.com/search?q=%QUERY%" > tmp.htm more tmp.htm del tmp.htm (Note that the first two lines should actually be one line of code in the batch file.) You may instead want to download the following batch file we have created. This batch file is an enhancement to the one written in this tip. It starts the Lynx web browser if it exists on your hard drive, and if not, your default web browser starts: * Google search via the Windows XP / DOS command prompt
|
Press the "print" button on your browser or select "File" - "Print" to print this tip. Then,
return to Windows XP and DOS - Search Google and Other Search Engines from the Command Prompt
Standard disclaimer applies - read http://malektips.com/disclaim.html.