File Rename Problem

Hi,

I've tried to select multiple folders and want to rename the word "ft." into "feat." in the file names.

I've selected the folders, clicked for rename, choosed "Find and Replace" and selected 'Case Sensitive', 'Rename files in selected sub-folders' and - 'Test Mode'. After that I press OK and a new window opens with the result.

At first - the settings 'Case Sensitive', 'Rename files in selected sub-folders' and - 'Test Mode' have been removed from the original window. Why? I think that's a bug.

And the result shows the old/new filenames (ok) but also all selected directories which should be renamed to "feat."? Why? They don't include the word "ft.". What's wrong?

See screenshot


Use Regular Expressions and try this:

[code]
Old Name: (.)ft.(.)
New Name: \1feat.\2

[code]

Thanks a lot - this would be next test case - this works.

But that's not a reply why it does not work with the easier way? Not everyone understands regex expressions .. e.g. my father.

But why does it work with regex and not with the normal way?

[quote="kenalcock"]Use Regular Expressions and try this:

[code]
Old Name: (.)ft.(.)
New Name: \1feat.\2

[code][/quote]

ps. (.)ft.(.) would be better :wink:

I'd guess that both are bugs in the Test Mode code.

The folders don't get renamed, right?

The preview list in the other window of your screenshot shows the folders won't be renamed so presumably it's just the Test Mode output displaying things incorrectly, plus a second bug where clicking OK in test mode doesn't copy the selected options across to the new dialog.

Drop GPSoft a bug report to get them fixed.

I didn't try it with "Find And Replace" - only with Regex where it has shown the correct test result.

But as you said - I'm sure it's a bug. :slight_smile:

Thanks,
Robert

[quote="fuzi1968"][quote="kenalcock"]Use Regular Expressions and try this:

[code]
Old Name: (.)ft.(.)
New Name: \1feat.\2

[code][/quote]

ps. (.)ft.(.) would be better :wink:[/quote]

:open_mouth: Whoops! You are correct, I was typing pretty fast and forgot the slash. Good thing you caught it.