# File Rename Problem

**URL:** https://resource.dopus.com/t/file-rename-problem/2810
**Category:** Help & Support
**Created:** [December 22, 2006, 2:36pm UTC](https://resource.dopus.com/t/file-rename-problem/2810 "2006-12-22T14:36:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![fuzi1968](https://resource.dopus.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fuzi1968](https://resource.dopus.com/u/fuzi1968)
#### Post date: [December 22, 2006, 2:36pm UTC](https://resource.dopus.com/t/file-rename-problem/2810/1 "2006-12-22T14:36:58Z")

</div>

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

 ![](https://resource.dopus.com/uploads/default/original/3X/6/b/6b176ec17c45124e1e3311eb78371274b13e3727.jpg)

---

<div class="post-metadata">

### Author: ![kenalcock](https://resource.dopus.com/letter_avatar_proxy/v4/letter/k/5e9695/32.png) [@kenalcock](https://resource.dopus.com/u/kenalcock)
#### Post date: [December 22, 2006, 2:46pm UTC](https://resource.dopus.com/t/file-rename-problem/2810/2 "2006-12-22T14:46:38Z")

</div>

Use Regular Expressions and try this:

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

[code]

---

<div class="post-metadata">

### Author: ![fuzi1968](https://resource.dopus.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fuzi1968](https://resource.dopus.com/u/fuzi1968)
#### Post date: [December 22, 2006, 2:57pm UTC](https://resource.dopus.com/t/file-rename-problem/2810/3 "2006-12-22T14:57:09Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![fuzi1968](https://resource.dopus.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fuzi1968](https://resource.dopus.com/u/fuzi1968)
#### Post date: [December 22, 2006, 2:58pm UTC](https://resource.dopus.com/t/file-rename-problem/2810/4 "2006-12-22T14:58:17Z")

</div>

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

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

[code][/quote]

ps. (._)ft.(._) would be better 😉

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [December 22, 2006, 4:32pm UTC](https://resource.dopus.com/t/file-rename-problem/2810/5 "2006-12-22T16:32:52Z")

</div>

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](http://www.gpsoft.com.au/Support.html) to get them fixed.

---

<div class="post-metadata">

### Author: ![fuzi1968](https://resource.dopus.com/letter_avatar_proxy/v4/letter/f/9e8a1a/32.png) [@fuzi1968](https://resource.dopus.com/u/fuzi1968)
#### Post date: [December 22, 2006, 4:43pm UTC](https://resource.dopus.com/t/file-rename-problem/2810/6 "2006-12-22T16:43:18Z")

</div>

> [@nudel](#):
>
> The folders don't get renamed, right?

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. 🙂

Thanks,  
Robert

---

<div class="post-metadata">

### Author: ![kenalcock](https://resource.dopus.com/letter_avatar_proxy/v4/letter/k/5e9695/32.png) [@kenalcock](https://resource.dopus.com/u/kenalcock)
#### Post date: [December 22, 2006, 6:26pm UTC](https://resource.dopus.com/t/file-rename-problem/2810/7 "2006-12-22T18:26:26Z")

</div>

[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 😉[/quote]

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