HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Disallow spaces in filenames
Author: Xavier Roche
Date: 09/02/2005 18:59
 
> Is there a simple way (even if it means messing with
> the source a bit) to get httrack to change spaces to
> underscores in the files it creates?
See library examples:

libtest/callbacks-example-filename.c
this one replaces all filenames by their ROT-13 equivalent

libtest/callbacks-example-filenameiisbug.c
this one replaces all ".com" or ".exe" occurences by ".c0m" or ".ex3" (because
of an IIS bug)

You wil lhave to compile them, such as in:

gcc -O -g3 -Wall -D_REENTRANT -DINET6 -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -shared -o callback.so callbacks-example-filename.c

or with Visual C++:

cl -LD -nologo -W3 -Zi -Zp4 -DWIN32 -Fe"callback.dll"
callbacks-example-filename.c

And then, call:

httrack --wrapper save-name=callback:mysavename ..
 
Reply Create subthread


All articles

Subject Author Date
Disallow spaces in filenames

08/31/2005 16:58
Re: Disallow spaces in filenames

09/02/2005 18:59
Re: Disallow spaces in filenames

09/05/2005 14:26




b

Created with FORUM 2.0.11