假設不想安裝軟體,可透過 bitsadmin 做到。
script 如下..
:: @echo off
:: daily download pchome by bitsadmin
set /a dt=%date:~0,4%%date:~5,2%%date:~8,2%
set pchome=http://24h.pchome.com.tw/onsale/v3/%dt%/#!3c.htm
bitsadmin.exe /transfer "download" %pchome% d:\local\downloads\pchome.html
用下載pchome價格資料為例