Renaming Multiple Files in FrontPage

K

Kevin

I have to rename over two thousand files that have links
to each other. I want to avoid doing this one by one and
still keep all of the links. How can I accomplich this?
 
M

MD WebsUnlimited.com

Hi Kevin,

You'll need to write a macro to do the file renaming, and I would hope you
have naming convention in mind. You may wish to ask this question in the
appropriate NG Microsoft.public.FrontPage.programming.
 
J

Jim Buyens

-----Original Message-----
I have to rename over two thousand files that have links
to each other. I want to avoid doing this one by one
and still keep all of the links. How can I accomplich
this?

Microsoft Office FrontPage 2003 Inside Out explains a
macro that scans every file and folder name in a site,
and renames all files and folders to lower case.

If this seems similar to your problem, refer to the
section titled, "Programming Web Objects," in Appendix L.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
M

MD WebsUnlimited.com

Is not your addin restricted to renaming them to lower case only? I believe
Kevin, wishes to use a naming convention.
 
J

Jim Cheshire

Kevin,

Without seeing the Web site and having the whole picture, it's difficult to
say. You can certainly do that with a macro without much difficulty.

If you want to zip up the Web site and e-mail it to me (if it's not too
large), I can show you what I mean.

--
Jim Cheshire
Jimco Add-ins
http://www.jimcoaddins.com
===================================
Co-author of Special Edition
Using Microsoft FrontPage 2003
Order it today!
http://sefp2003.frontpagelink.com



Kevin said:
Thanks to everyone. I thought that there may have been some type of
plug-in that would do the multiple rename but doing a search provided no new
answer. I do have a naming convention in mind if that helps.... The files
are curently named something like this: C01B001.htm C01B002.htm C01C003.htm
and so on. I want to change the 1st 5 digits in the name to let's say
Coffee_ so that the end file name looks like: Coffee_01.htm Coffee_02.htm
Coffee_03.htm. Keep in mind that currently C01B001.htm may have links to
C01B050.htm and other pages will have links back to it. I want to somehow
rename all of the pages and have all the links point to the new names. Is
there any automated way of doing this?!?!
 
M

MD WebsUnlimited.com

Hi Kevin,

Instead of shipping off you web site, send my your email address and I'll
send you the code.
--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
----------------------------------------------------------------------------
--------------------
If you think I'm doing a good job, let MS know at [email protected]


Kevin said:
Thanks to everyone. I thought that there may have been some type of
plug-in that would do the multiple rename but doing a search provided no new
answer. I do have a naming convention in mind if that helps.... The files
are curently named something like this: C01B001.htm C01B002.htm C01C003.htm
and so on. I want to change the 1st 5 digits in the name to let's say
Coffee_ so that the end file name looks like: Coffee_01.htm Coffee_02.htm
Coffee_03.htm. Keep in mind that currently C01B001.htm may have links to
C01B050.htm and other pages will have links back to it. I want to somehow
rename all of the pages and have all the links point to the new names. Is
there any automated way of doing this?!?!
 
J

Jim Buyens

MD WebsUnlimited.com said:
Provided they have "The Book" ;>)

Well, anyone who wants a copy can get one. Same as J-Bots.

And yes, if Kevin's requirement is something other than renaming
files to lower case, he would have to modify the VBA code. Sample
code is like that.

Some people like to modify sample code; other like to buy third-party
components. To each his own.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
R

Ronx

There is a freeware program that will rename the files to your convention at
http://www.herve-thouzard.com/therename.phtml .
However this will not correct any links within the pages. The broken
hyperlinks report within FP can be surprisingly speedy at correcting the
links, since it will handle many links/pages at once.

--
Ron

Reply only to group - all emails will be deleted unread.


Kevin said:
Thanks to everyone. I thought that there may have been some type of
plug-in that would do the multiple rename but doing a search provided no new
answer. I do have a naming convention in mind if that helps.... The files
are curently named something like this: C01B001.htm C01B002.htm C01C003.htm
and so on. I want to change the 1st 5 digits in the name to let's say
Coffee_ so that the end file name looks like: Coffee_01.htm Coffee_02.htm
Coffee_03.htm. Keep in mind that currently C01B001.htm may have links to
C01B050.htm and other pages will have links back to it. I want to somehow
rename all of the pages and have all the links point to the new names. Is
there any automated way of doing this?!?!
 
R

Ronx

If you use this utility, try it on a back-up first with FrontPage closed,
and don't forget to Recalculate Hyperlinks when re-opening the site in FP.
 
M

MD WebsUnlimited.com

Gees, don't get so serious Jim.

My intent was to say that your book, "FrontPage Inside/Out" is the "The
Book" . The emoticon was to bring frivolity to the statement.

Sorry you took offense.
 
J

Jim Buyens

MD WebsUnlimited.com said:
Gees, don't get so serious Jim.

My intent was to say that your book, "FrontPage Inside/Out" is the "The
Book" . The emoticon was to bring frivolity to the statement.

Sorry you took offense.

Sorry here, as well. I plead momentary lapse of reason.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
Top