Renaming Many Files

This forum is for all Flare issues not related to any of the other categories.
Post Reply
BobMerrill
Propeller Head
Posts: 45
Joined: Tue Nov 07, 2006 10:17 am
Contact:

Renaming Many Files

Post by BobMerrill »

Hi there,
I've inherited a project with a large number of topics.
One of the issues with this project is that because of the folder structure and file names, the Windows pathnames may exceed the length limits imposed by Windows (depending on where you put it on a target drive) making the project uncopy-able. I'm in the process of reorganizing and renaming, partly with the goal of shortening the pathnames.
Among those topics is a folder containing many topic files, 164 of which begin with "sbe6_000". (I'm assuming that these names were the result of some sort of import process - the original project was in RoboHelp.) I would love to rename all of these files without breaking the links to them, and also without renaming them one at a time.
Any suggestions welcome.
The only option I've thought of that might reduce the work is to rename the files outside of Flare (I do this all the time from the command-line), search and replace for "sbe6_000" in the TOC(s) and find out what new broken links I have. I could probably fix most of those links with a Regex search-and-replace.
Any thoughts welcome.
Thanks!
Bob
Nita Beck
Senior Propellus Maximus
Posts: 3672
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Renaming Many Files

Post by Nita Beck »

Bob, your plan sounds do-able, although you will indeed end up with a lot of broken links. Be sure to MAKE A BACKUP of your project before proceeding to edit filenames outside of Flare. AFAIK, there otherwise is no way to edit filenames in Flare except one by one, so that Flare can manage updating the links.
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
BobMerrill
Propeller Head
Posts: 45
Joined: Tue Nov 07, 2006 10:17 am
Contact:

Re: Renaming Many Files

Post by BobMerrill »

Thanks, Nita. I guess that makes me a Propellerhead... 8)
devjoe
Sr. Propeller Head
Posts: 340
Joined: Thu Jan 23, 2014 1:43 pm

Re: Renaming Many Files

Post by devjoe »

If you do this, you should replace the filenames everywhere - in topics, TOCs, alias files, etc.
GregStenhouse
Sr. Propeller Head
Posts: 330
Joined: Tue May 13, 2008 3:27 pm
Location: Christchurch, New Zealand

Re: Renaming Many Files

Post by GregStenhouse »

You may want to look into a tool such as "FAR - Find And Replace"
wclass
Propellus Maximus
Posts: 1238
Joined: Mon Feb 27, 2006 5:56 am
Location: Melbourne, Australia

Re: Renaming Many Files

Post by wclass »

GregStenhouse wrote:You may want to look into a tool such as "FAR - Find And Replace"
I have also used the FAR tool for this and am very happy, though it does cost money - well worth it in my opinion.
http://www.helpwaregroup.com/products/far
Margaret Hassall - Melbourne
Post Reply