| > It should:
> launch HTTrack, "grab" a web-forum, make a copy of
> the forum by storing it into always the same folder,
> and automatically add the date to the elsewhere
> always same name (like: forum150309).
I'd suggest YYMMDD instead of DDMMYY (See rem comment below.)
Start by copying the hts-cache\doit.log file to say daily.bat. That has all
your options for the command line. Edit the file in notepad or any other text
only editor.
Delete everything but the first (option) line. Move the -O1 "C:\\...." to a
newline and remove the -O1.
Make both set commands. Double all percent signs in the options. Your batch
file should look something like this:
set
options=-qi%%e0C2%%PnxX0s0u1%%s%%uN5%%I0p3DaK0c11T60J99R9H3%%kf2o0A100152%%c10%%f#f
-F "{BROWSER-ID}" -%%F "<!-- {FOOTER} -->" -%%l "en, en, *" {SITE-URL}
{FILTERS} -%%A {mime-types}
set output="C:\\Documents and Settings\\{USER}\\My
Documents\\forum%DATE:~7,2%%DATE:~4,2%%DATE:~12,2%"
rem forumDDMMYY YYYYMMDD=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%
set httrack="C:\Program Files\WinHTTrack\httrack.exe"
md %output:\\=\%
%httrack% %options% -O1 %output%
| |