No. : 291 Sender: msyk URL : Title : 自動巡回用バッチ・ファイル 以下のバッチ・ファイルは If-Modified-Since: を利用して更新 されている場合のみページを get するために私が実際に使用している ものです. この程度のものでも手動でアクセスするのに比べれば全然速くて楽ですよ. 指示ファイル中の Request-Header: で指定するファイルの内容は If-Modified-Since: Sat, 01 Jan 2000 00:00:00 GMT というようにタイム・ゾーンは必ず GMT で記述します. ----------< snip >---------- @echo off :loop httpget @%1 bu fileline res_ent.bod 0 if errorlevel == 2 goto update if errorlevel == 1 goto next :update ren res_ent.bod %1.htm grep -h "^Last¥-Modified: " response.hed | sed "s/Last¥(¥-Modified¥)/If¥1¥-Since/" | pcp -b %1.hed del response.hed :next if "%2" == "" goto end shift goto loop :end if exist response.hed del response.hed if exist res_ent.bod del res_ent.bod ----------< snip >----------