Difference (from prior minor revision)
Added: 4a5,6
> * ##%h## Host name (eg: www.someweb.com)
> * ##%p## Path [without ending /] (eg: /someimages)
Removed: 7,9d8
< * ##%t## File type (eg: gif)
< * ##%p## Path [without ending /] (eg: /someimages)
< * ##%h## Host name (eg: www.someweb.com)
Added: 13a13
> * ##%t## File type (eg: gif)
Added: 22a23
> http://forum.httrack.com/readmsg/12712/index.html?pid=12708
Removed: 26d26
< http://forum.httrack.com/readmsg/12712/index.html?pid=12708
Added: 28a29,34
> === Examples ===
> <pre>
> %h%p/%n%[id:-:::].%t
> </pre>
> Use the regular name of files, and if "id" is found in querystring then append "-<id_value>" to name, followed by file extension.
> example.com/page.php?id=news > example.com/page-news.html
Defined in WinHTTrack options Build > Local structure type
, click the Options button.
From the command-line use -N <structure>
%r
protocol name (eg: http)%h
Host name (eg: www.someweb.com)%p
Path [without ending /] (eg: /someimages)%n
Name of file without file type (eg: image)%N
Name of file, including file type (eg: image.gif)%M
MD5 URL (128 bits, 32 ascii bytes)%Q
MD5 query string (128 bits, 32 ascii bytes)%q
small MD5 query string (16 bits, 4 ascii bytes)%s?
Short name (eg: %sN)%t
File type (eg: gif)%[param]
param variable in query string%[param:before:after:empty:notfound]
advanced variable extractionparam
: parameter namebefore
: string to prepend if the parameter was foundafter
: string to append if the parameter was foundnotfound
: string replacement if the parameter could not be foundempty
: string replacement if the parameter was emptyNew variable in version 3.40?
http://forum.httrack.com/readmsg/12712/index.html?pid=12708
Another option is to use the user-defined build structure to force all types to be 3-characters long: -N "%h%p/%n%q.%st"
TODO - Test %st variable
%h%p/%n%[id:-:::].%t
Use the regular name of files, and if "id" is found in querystring then append "-<id_value>" to name, followed by file extension.
example.com/page.php?id=news > example.com/page-news.html