HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: creating a DOS-Batch file
Author: William Roeder
Date: 03/16/2009 15:03
 
> 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%
 
Reply Create subthread


All articles

Subject Author Date
creating a DOS-Batch file

03/16/2009 12:46
Re: creating a DOS-Batch file

03/16/2009 15:03
Re: creating a DOS-Batch file

03/16/2009 15:10
Re: creating a DOS-Batch file

03/16/2009 15:15
Re: creating a DOS-Batch file

03/16/2009 16:37
Re: creating a DOS-Batch file

04/16/2009 13:12




5

Created with FORUM 2.0.11