#1 2012-10-09 16:11

Remon
Member
Registered: 2011-03-10
Posts: 11

Upper case the extension only

Maybe a very simple question but I can't find the answer:

How can I rename only the extensions to uppercase?

Offline

#2 2012-10-09 16:22

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Upper case the extension only

There is an option in the Case rule to force the extension to lower case, but no option for the upper case yet. It seems quite logical, I will add it shortly. I guess nobody has asked for it before.

In the meantime, it could be performed with either a PascalScript or a combination of RegEx/Rearrange and Case rules.

Offline

#3 2012-10-09 16:33

Remon
Member
Registered: 2011-03-10
Posts: 11

Re: Upper case the extension only

Thank you. Someone has to be the first smile

Offline

#4 2012-10-09 19:17

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Upper case the extension only

Remon wrote:

Maybe a very simple question but I can't find the answer:

How can I rename only the extensions to uppercase?

Till today the simplest way is to use a PascalScript rule:

begin
    FileName := WideExtractBaseName(FileName)
              + WideUpperCase( WideExtractFileExt(FileName) );
end.

Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#5 2012-10-09 21:19

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Upper case the extension only

I've added "Extension always upper case" option to the Case rule.

Try the latest development version: ReNamer Beta

Offline

#6 2012-10-10 07:55

Remon
Member
Registered: 2011-03-10
Posts: 11

Re: Upper case the extension only

Thank you. What an incredible support  smile

BTW I noted that when you unselect files in the filelist (removing the checkbox --> selecting the files and clicking on the space bar), it doesn't change the colors of these files. They are still red colored including the change what has to be made by the rule.

Last edited by Remon (2012-10-10 08:02)

Offline

#7 2012-10-10 19:06

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Upper case the extension only

Remon wrote:

I noted that when you unselect files in the filelist (removing the checkbox --> selecting the files and clicking on the space bar), it doesn't change the colors of these files. They are still red colored including the change what has to be made by the rule.

Marking/unmarking files does not cause the new names to be regenerated automatically. However, if file is unmarked it will be skipped from following Preview and Rename operations. If you click Preview after unmarking the file it will blank its new name.

Offline

#8 2012-10-10 19:29

Remon
Member
Registered: 2011-03-10
Posts: 11

Re: Upper case the extension only

ah ok. wink
Thanks for your answer.

Offline

#9 2012-10-12 20:31

Andrew
Senior Member
Registered: 2008-05-22
Posts: 542

Re: Upper case the extension only

den4b wrote:

There is an option in the Case rule to force the extension to lower case, but no option for the upper case yet. It seems quite logical, I will add it shortly. I guess nobody has asked for it before.

Logical? Of course it is logical, which is why I requested this feature (changing case of only extension and skipping filename) more than 4 years ago (and even provided mock-ups of how the dialog could be improved a bit), but you stated that "very few users would ever bother changing the case of the extension". Fine, you are the final judge obviously so I have been using custom scripts all this time or other renaming utils to accomplish this. Sorry, but how come the exact same suggestion seems logical now and not back then? roll Anyway, better later than never I guess. neutral

Offline

#10 2012-10-12 21:46

Remon
Member
Registered: 2011-03-10
Posts: 11

Re: Upper case the extension only

Andrew, thanks to you too (as the first one who asked this feature), den4b added our request.

Offline

Board footer

Powered by FluxBB