@echo off : Copyright 2007 Andrew Malek. : Downloaded from the MalekTips site. : Visit http://www.malektips.com/ for : THOUSANDS of computer tips and tricks! if not "%1"=="" (set QUERY=%1) else (goto error) :loop shift if not "%1"=="" (set QUERY=%QUERY%+%1) else (goto exitloop) goto loop :exitloop if exist c:\lynx\samples\lynx.bat (call c:\lynx\samples\lynx -nolist -dump "http://www.google.com/search?q=%QUERY%" > tmp.htm) else (start "" "http://www.google.com/search?q=%QUERY%") if exist tmp.htm (more tmp.htm) del tmp.htm exit :error echo You did not enter a search query!