[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [APML] Off topic : Transfer my site
Dominic,
As previously suggested, perl is a good choice for something like this.
It can be downloaded for windows here:
http://www.activestate.com/Products/Download/Register.plex?id=ActivePerl
Install it in C:\Perl
Then you can use a script like this in the top level directory of your pages
(make a backup copy of your stuff first just in case!):
---- Copy-Paste from here down into a file called fixlinks.pl -------
#!c:\Perl\bin\perl.exe -i.bak
use File::Find;
find(sub{ if ($File::Find::name =~ /.*\.html/ ||
$File::Find::name =~ /.*\.htm/ ) {
local @ARGV = ($_);
while (<>) {
s/skyphoto\.homestead\.com/astrosurf\.com\/aurores/g;
print;
}
}
}
, qw(.));
find(sub{ if ($File::Find::name =~ /.*\.bak/) {
unlink $_;
}
}
, qw(.));
--- End Copy-paste ---
Put that file at the top level of your pages and double-click it. They will
all be fixed.
A better solution would be to use relative links instead of hard links in your
html.
EZB
--- Dominic Cantin <dominiccantin@yahoo.ca> wrote:
> Hi all !
>
> I am going to transfer my site http://skyphoto.homestead.com toward
> http://astrosurf.com/aurores soon , with some modifications. I would like to
> know if there is a fast way to change all the links of my images with Front
> Page because I have more of 300 of them ! Don't be too technical because I
> don't know the HTML but I have a good basis with Front Page :)
>
> Thanks !
>
>
>
> Dominic Cantin
>
> http://skyphoto.homestead.com
>
> http://spacew.com/gallery/DominicCantin
>
> dominiccantin@yahoo.ca
>
>
>
> ---------------------------------
> Lèche-vitrine ou lèche-écran ? Yahoo! Magasinage.
> > _______________________________________________
> Astro-Photo mailing list
> Astro-Photo@seds.org
> http://seds.org/mailman/listinfo/astro-photo
>
=====
EZB
http://www.honeydewphoto.com/eric
_______________________________________________
Astro-Photo mailing list
Astro-Photo@seds.org
http://seds.org/mailman/listinfo/astro-photo