Mass renaming tool replaces file extension dot
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 79
- Joined: 2003-10-27, 16:49 UTC
- Contact:
Mass renaming tool replaces file extension dot
When replacing '.' with something else in the mass renamer, the dot separating name and extension is replaced, too.
However, since filename and extension are handled separately in the tool, there should be an option to disable touching of that dot.
For example, certain files usually have dots in the filename instead of spaces. When removing those dots I have to do it like that right now:
- replace . with a space
- remove the last 4 chars (space + extension)
- rename the file to [N] with extension <old-extension>
So I need to run three mass-renames even though I just want to get rid of dots in the filename...
However, since filename and extension are handled separately in the tool, there should be an option to disable touching of that dot.
For example, certain files usually have dots in the filename instead of spaces. When removing those dots I have to do it like that right now:
- replace . with a space
- remove the last 4 chars (space + extension)
- rename the file to [N] with extension <old-extension>
So I need to run three mass-renames even though I just want to get rid of dots in the filename...
I may suggest to use two-step rename. Instructions:
1. Fill name field as you wush.
2. Fill extension field as you wish but add some unique prefix like ^DOT^ (e.g. ^DOT^[E]).
3. Fill 'replace what' and 'replace with' fields as you wish.
4. Append to 'replace what' field following:
5. Append to 'replace with' field following:
So, TC will replace your dots with something useful for you and then will replace ^DOT^ before extension with dot. 
E.g. if you wish to replace dots with spaces, use:
Name:
Ext:
Replace what:
Replace with:
And don't forget to save this crazy preset. 
1. Fill name field as you wush.
2. Fill extension field as you wish but add some unique prefix like ^DOT^ (e.g. ^DOT^[E]).
3. Fill 'replace what' and 'replace with' fields as you wish.
4. Append to 'replace what' field following:
Code: Select all
|^DOT^
Code: Select all
|.

E.g. if you wish to replace dots with spaces, use:
Name:
Code: Select all
[N]
Code: Select all
^DOT^[E]
Code: Select all
.| ^DOT^
Code: Select all
|.

Last edited by MVV on 2010-04-16, 09:22 UTC, edited 3 times in total.
-
- Junior Member
- Posts: 79
- Joined: 2003-10-27, 16:49 UTC
- Contact:
Re: Mass renaming tool replaces file extension dot
Here you go, one-step renaming of "." while leaving the final period and extension in place.ThiefMaster wrote:When replacing '.' with something else in the mass renamer, the dot separating name and extension is replaced, too.
However, since filename and extension are handled separately in the tool, there should be an option to disable touching of that dot.
For example, certain files usually have dots in the filename instead of spaces. When removing those dots I have to do it like that right now:
- replace . with a space
- remove the last 4 chars (space + extension)
- rename the file to [N] with extension <old-extension>
So I need to run three mass-renames even though I just want to get rid of dots in the filename...
In the rename mask box, put the following;
Code: Select all
[N]^^[E]
In the search for box, put this;
Code: Select all
.|^^
Code: Select all
|.
Feel free to change "^^" to the pattern of your choice.
Presto! All periods will be changed to spaces, except the last one.
Why this works;
TC treats the extension as a separate part of the filename. When something is placed in the extension box, TC is hardcoded to place those characters after the filename separated by a period, and that period is then subjected to the search & replace rules. By erasing the contents of the extension box, you're telling TC that you don't want an extension. When you place the "[E]" tag in the filename box, it simply becomes part of the filename. You can then replace "^^" with a period, because the periods in the filename have already been changed. This happens because the search is carried out left to right. Note that if you reversed the contents of the search & replace boxes to replace the "^^" first, you'd end up with the same problem as you originally had. But by replacing it second, there's no problem changing it to a period.

-
- New Member
- Posts: 1
- Joined: 2020-12-23, 00:18 UTC
Re: Mass renaming tool replaces file extension dot
Actually the answer is much easier. While renaming your files UNCHECK the box with the letter E just under where it is written REPLACE WITH. When you hover your mouse there you will notice that the checked box says REPLACE ALSO IN FILE EXTENSIONS. So all you have to do is uncheck that and you are good to go. Another trick you may want to use is on the left upper corner you may want to check the 6th option ( a yellow box) that says Show all files in current dir and all subdirrs. You do this before selecting your files that you want to remove dots from.