Renaming files

A collection of especially useful xplorer² topics and ideas. New users may find it helpful to look here before searching the other forums for information. >>>>>> Please post new material in the relevant forum. (New stuff posted here will be removed.) Thanks. -fg-

Moderators: fgagnon, nikos

User avatar
medic5608d
Member
Member
Posts: 22
Joined: 2003 Jan 20, 02:01
Location: Texas, USA

Renaming files

Post by medic5608d » 2006 Mar 26, 16:14

=====================================================================
May 19, 2010 - preamble to topic having been moved here to "Favorites" forum:

Renaming files is a frequently recurring theme in file management.  Our users have asked more questions and contributed more solutions and recommendations on this subject than any other single subject.  
Users' favorite recommended third party tools continue to change as better tools are written for advanced tasks.  
I have selected the following single topic thread from the archives as an extensive sample of the questions and suggestions that have been posted on this subject over the years.
More discussion of current favorite renaming tools can be found in in the x2 Pro forum.
For further examples, see here, and here.   
Enjoy!
-fgagnon-
===================================================================


Sorry...it's Sunday morning and while I've tried searching the Forum first for this solution, I am just going in circles. I know there is a simple answer, so here goes:

I want to rename every file in multiple folders such that when I am done, I have eliminated the first 15 characters, including spaces. Every filename has the same first 15 characters (including spaces).

Example:
paramedic dave 01 Skybox 113.jpg needs to be changed to:
01 Skybox 113.jpg

Please get me started.

Dave

Demetris
Silver Member
Silver Member
Posts: 217
Joined: 2004 Jul 04, 17:18

Post by Demetris » 2006 Mar 26, 17:10

I think you need a dedicated mass renamer for this (removing n characters from the start of the filename). The ones I like the most are:

* Rename Master, and
* Flexible Renamer.

The one recommended in the x2 Help is:

* THE Rename

All are free, and I know that the first two can scan recursively to a defined depth of directories, and can also use metadata for renaming audio files or images.

Greetings,
Demetris

User avatar
medic5608d
Member
Member
Posts: 22
Joined: 2003 Jan 20, 02:01
Location: Texas, USA

Renaming files en masse

Post by medic5608d » 2006 Mar 26, 18:49

I went here, http://mediachance.com/free/renamer.htm and downloaded a file renaming utility, as recommended elsewhere in this forum. It worked great!

Thanks,

Dave

User avatar
fgagnon
Site Admin
Site Admin
Posts: 3737
Joined: 2003 Sep 08, 19:56
Location: Springfield

Post by fgagnon » 2006 Mar 26, 18:51

x2 does not support the sort of renaming you are looking for, medic5608d.

However, any of several third-party renamer utilities should do the trick for you, as Demetris mentioned in his post.

PS - (I didn't see you post before I added mine.) I am glad you found a solution.

BRX
Silver Member
Silver Member
Posts: 277
Joined: 2002 Feb 08, 12:12

Post by BRX » 2006 Mar 27, 12:05

Good opportunity to bring another renamer utility to x2 users' attention which IMO compliments x2 own renaming functions very well.

Narayan, please test and decide if it's worth a mention in the manual.

What IMHO is essentially lacking in x2's renaming functionality is s/p of parts of the files and regular expressions (which is due to the design).

If you need that and don't want to start a seperate renaming program you can use an nice shell extension called awxrename.

You can download it from

http://www.arniworld.de/downloads.htm

(some more interesting shell extensions are there too. Don't bother with version number. The page isn't updated, but the download you get is v0.0.5.2)

Sadly it doesn't work on scrap panes (like other shell extensions). But it's still a major help.

Gandolf
Silver Member
Silver Member
Posts: 349
Joined: 2004 Jun 12, 10:47

Post by Gandolf » 2006 Mar 27, 12:55

And, if you're not already spoilt for choice, I like LupasRename http://www.azheavymetal.com/~lupasrenam ... rename.php

narayan
Platinum Member
Platinum Member
Posts: 1430
Joined: 2002 Jun 04, 07:01

Post by narayan » 2006 Mar 27, 16:28

I checked awxrename out.

I thought it would somehow integrate with x2. But it has its own simple GUI that does nothing but RegEx replacement. Then the other applications are better, because they offer many things (besides RegEx replacement).

Any thoughts?

BRX
Silver Member
Silver Member
Posts: 277
Joined: 2002 Feb 08, 12:12

Post by BRX » 2006 Mar 28, 11:02

Well, it does for me. That's why I brought it up.

Don't you have a menu entry for awxrename in right-click context menu?

There you can directly rename the selected files with some preselected (and editable) actions or go to the "advanced" entry which pops up a mask for entering the search and replace string.

Doesn't it work this way for you?

narayan
Platinum Member
Platinum Member
Posts: 1430
Joined: 2002 Jun 04, 07:01

Post by narayan » 2006 Mar 30, 17:29

Sorry-- Didn't notice it at first.

Yes, it's lovely! These are the most-often needed options. Definitely worth adding to the User Manual!

Demetris
Silver Member
Silver Member
Posts: 217
Joined: 2004 Jul 04, 17:18

Post by Demetris » 2006 Mar 30, 19:23

narayan wrote:Sorry-- Didn't notice it at first.

Yes, it's lovely! These are the most-often needed options. Definitely worth adding to the User Manual!
I agree. Thanks, BRX, for this suggestion. :) I was looking for this for a long time. It does not work with Unicode filenames, but, then, I don't know of any such tool that does. :(

Brig
Silver Member
Silver Member
Posts: 208
Joined: 2002 Aug 05, 16:01
Location: Michigan

Post by Brig » 2006 Mar 30, 19:31

Hey folks:

I tried out awxrename and found it pretty good--the best thing is having those common renaming options right in the context menu. The problems I had, though, were speed--it works very slowly--and, when it finishes, the renamed files disappear; only a refresh (ctrl-r) brings them back. Did anybody else see this behavior?

I'm sticking with The Rename (for photos--great exif manipulation) and Lupas for most everything else.

Thanks,
Brig

supster
Member
Member
Posts: 17
Joined: 2005 Oct 18, 18:43

Post by supster » 2006 Mar 31, 11:05

best file renamer ive found:

Sherrod FileRenamer

definitely the most intuitive,  allows you to quickly decide on file renaming schemes and easily figure out how to get them done.   the others i tried were either not flexible enough or not intuitive enough

it also renames audio files using tag information enmasse.  there arent many utility programs that i demo that i actually pay to register,  x2 is one,  FileRenamer is another

.

narayan
Platinum Member
Platinum Member
Posts: 1430
Joined: 2002 Jun 04, 07:01

Post by narayan » 2006 Apr 04, 14:00

Brig wrote:it works very slowly--and, when it finishes, the renamed files disappear; only a refresh (ctrl-r) brings them back. Did anybody else see this behavior?
It is not slow in my case, but it does require a refresh. The old entries do not vanish--They don't change, either.

BTW  I believe this "sentence case" is the most required thing, and that is missing from the context menu! What's the script for making the entire name in lowercase, except for the first letter in Uppercase? (Even if the rest of the letters are uppercase, they should get converted to lowercase).

What language is used in this script? Doesn't look like RegEx!

User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1141
Joined: 2005 Oct 16, 19:09

Post by FrizzleFry » 2006 Apr 04, 21:16

awxrename uses Perl by default although it looks like it supports JScript and VBScript.  The following function caps the first character and lowers the rest:

use locale;$file =~s/(.+)/\u\L$1/;

This one caps the first alpha character and lowers the rest:

use locale;$file =~s/(\W*)(.+)/$1\u\L$2/;

so "1 - see dog run" will become "1 - See dog run"

narayan
Platinum Member
Platinum Member
Posts: 1430
Joined: 2002 Jun 04, 07:01

Post by narayan » 2006 Apr 05, 01:48

Thanks! The manual can now include the complete set of tricks!

One more, please!

Some file names merge all words, but put caps at the beginning of each word. How do I enter a space between those words and then make the first letter capitalized?


Example: HowToFindDuplicates  to How to find duplicates

Post Reply