Selecting files with CAPITAL extensions for MRT

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
DRP535
Senior Member
Senior Member
Posts: 307
Joined: 2003-03-03, 11:25 UTC

Selecting files with CAPITAL extensions for MRT

Post by *DRP535 »

Digital cameras are just one source that tends to create filenames in all CAPITAL letters. I dislike this and tend to manually change them back to lowercase. Is there a way I can quickly and easily search and select all files within a displayed pane with CAPITAL extensions for renaming via the MRT?

The select box via large + key is not case sensitive, so searching for .DWG or .JPG for example does not filter out those already lowercase.

Thanks
User avatar
louwin
Member
Member
Posts: 128
Joined: 2007-06-09, 11:22 UTC
Location: Perth, Western Australia

Post by *louwin »

The current case doesn't matter :)

Select ALL (for example) jpg (jpg or Jpg or JPG or whatever) and change them to "jpg". This avoids complex search patterns. :)
There are 10 types of people in the world,
Those who understand binary and those who don't.
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Or just activate
"Configuration -> Options ... -> Display:
[x] Show old 8.3 filenames lowercase (like explorer)
"

Regards
Holger
User avatar
white
Power Member
Power Member
Posts: 6018
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Selecting files with CAPITAL extensions for MRT

Post by *white »

DRP535 wrote:The select box via large + key is not case sensitive, so searching for .DWG or .JPG for example does not filter out those already lowercase.
When using the select box via large + key, hit the Define button. Then enable Regex and add "(?-i)" to your search pattern for case sensitive matching. For example:

Code: Select all

Search for:  (?-i)\.(DWG|JPG)$
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3897
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Let me add one more:
At "Search" dialog switch to Plugin tab and enter:

Code: Select all

tc -  ext - cont (case) - DWG
tc -  ext - cont (case) - JPG
Don't forget to select option "OR (any match" if you are using multiple extension values!

Well, one more example how flexible TC is.
There is always more than one solution, just pick the one you like best.
#5767 Personal license
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

sqa_wizard wrote:Well, one more example how flexible TC is.
There is always more than one solution
Yep. :wink:

Script Content Plugin

"script.ini":

Code: Select all

[Script]
Section=IsUPPERCASE
[IsUPPERCASE]
Script=IsUPPERCASE.vbs
LongName=0
"IsUPPERCASE.vbs"

Code: Select all

If filename=UCase(filename) Then
 content="Ucase" 
Else
 content="Mixed"
End if
<Alt+F7> "Plugins"
[x] Search in plugins
[script] [Result] [=] [Ucase]

Regards
Holger
Post Reply