CHECKURL Manual
[Bottom][Contents][Prev]: CHECKURL.REX - Program to Check URLS (Windows and OS/2)[Next]: Sample /OkResponses File

Sample Batch File

This batch file reads my 40 or so ".URL" files (created when I built my web pages - see "VALRURL.H") as well as the list of abot 900 WPS URLs that I have collected in multiple folders:

@echo off
cls
setlocal


REM *** WANT a DEBUG FILE (19990820.DBG etc) ********************************
set    checkurl_debug=out\remote.url\{Date}.DBG

REM *** INIT COMMAND LINE OPTIONS *******************************************
SET CLOPTIONS=

REM *** WANT a ERROR FILE (19990820.ERR etc) ********************************
SET CLOPTIONS=%CLOPTIONS%  /ErrorFile:out\remote.url\{Date}.ERR

REM *** SET UP SOME LONG TERM MEMORY ****************************************
SET CLOPTIONS=%CLOPTIONS%  /MemoryFile:out\remote.url\CheckUrl.MEM

REM *** Check only if last checked 25-40 days ago (spreads out checking) ****
SET CLOPTIONS=%CLOPTIONS%  /CheckDays:25-40

REM Drop URLs we haven't looked at for more than 100 days *******************
SET CLOPTIONS=%CLOPTIONS%  /ForgetDays:100

REM *** Don't wait more than 20 seconds for a response from server **********
SET CLOPTIONS=%CLOPTIONS%  /ReadTimeout:20 /TimeoutRetry:0

REM *** Have some server responses we'd like to ignore **********************
SET CLOPTIONS=%CLOPTIONS%  /OkResponses:OKRC.LST

REM *** Add "IGNORE" commands to error output (for manual cut+paste) ********
SET CLOPTIONS=%CLOPTIONS%  /IgnoreFor:45


REM *** Test all WPS URLs (in "E:\DB\URLS" and subfolders) created by    ****
REM *** Netscape ("Create URL object" or with GUI gizmo near "bookmarks")****
REM *** Also "*.URL" files (All URLs used in my web pages - VALRURL.H)   ****
rem checkurl.rex CheckListedUrls /Exclude:+C:\DBAREIS\BOOKMARKS\*.$$$ +C:\DBAREIS\BOOKMARKS\*.*  out\remote.url\*.RURL  %CLOPTIONS%
checkurl.rex CheckListedUrls CheckListedUrls +C:\DBAREIS\BOOKMARKS\*.URL out\remote.url\*.RURL  %CLOPTIONS%



Note that the batch file does not retest a previously successfully tested URL for a period of time (specified as a range), this means that usually I'm only testing new or previously failed URLs, plus a small number of older URLs.


[Top][Contents][Prev]: CHECKURL.REX - Program to Check URLS (Windows and OS/2)[Next]: Sample /OkResponses File