I often search the Knowledge Base and locate extra articles that I would like to read at a later time.
If you want to save the results of a search:
1. create a meaningfull name text file (blah_blah.txt).
2. Right click the search results page and choose view source.
3. Find Search Results and delete from the following <TABLE...... statement to the top of the document.
4. Find </TABLE> and delete from it to the bottom of the document.
5. Paste the remaining test into your blah_blah.txt file.
6. If there are additional search pages, repeat steps 2 - 5.
7. Save blah_blah.txt.
Convert the blah_blah.txt to a legible document, containing the article URL and Title, by using JSIKBS.bat. The syntax is:
JSIKBS ouput_file blah_blah.txt \[more_input ...\]
JSIKBS.bat contains:
@echo off setlocal if "%1""" goto syntax if "%2"
"" goto syntax if exist %1 del /q %1 set output=%1 if exist %2 goto begin :syntax @echo Syntax: JSKBS output input \[more_input ...\] endlocal goto end :begin shift if "%1""" endlocal & goto end @echo %1 set sw=n for /f "Tokens=*" %%i in (%1) do call :parse "%%i" goto begin :parse set str=%1 set str=%str:&=% set str=%str:=% set str=%str:"=% if "%sw%"
"y" goto parse2 set substr=%str:~52,10% if /i not "%substr%""articles/Q" goto end set substr=%str:~61,13% set sw=y set /a cnt=0 goto end :parse2 set /a cnt=%cnt% + 1 if not %cnt% EQU 3 goto end set sw=n set txt=%str:~4,256% set txt1=%txt:/A/B=% if "%txt1%"
"%txt%" goto end @echo http://support.microsoft.com/support/kb/articles/%substr% %txt1% >> %output% :end