Mass rename question

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
sallybelgium
New Member
Posts: 2
Joined: 2020 Apr 20, 06:40

Mass rename question

Post by sallybelgium »

What I would like to do with the mass rename tool is to rename filenames completely to captial letters.
For exemple Testfile.txt ==> TESTFILE.TXT

How should I do this?
User avatar
nikos
Site Admin
Site Admin
Posts: 15771
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: Mass rename question

Post by nikos »

I don't think you can do that... perhaps some of the regular expression gurus in the forum will have another idea?
User avatar
CrossX
Bronze Member
Bronze Member
Posts: 128
Joined: 2009 Dec 05, 21:13

Re: Mass rename question

Post by CrossX »

MassRename (a free project by Stulle) can do that (capitalize) and a lot of other things
https://sourceforge.net/projects/mass-rename/

It would be good if Nikos could "embed it" in xplorer2.
sallybelgium
New Member
Posts: 2
Joined: 2020 Apr 20, 06:40

Re: Mass rename question

Post by sallybelgium »

CrossX wrote: 2020 Apr 20, 18:01 MassRename (a free project by Stulle) can do that (capitalize) and a lot of other things
https://sourceforge.net/projects/mass-rename/

It would be good if Nikos could "embed it" in xplorer2.
The thing is, that I bought xplorer to have all those tools at hand...
On my mac I have pathfinder installed, and that rename tool can do it easily..I thought that maybe it could be done in xplorer² as well...
User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1241
Joined: 2005 Oct 16, 19:09

Re: Mass rename question

Post by FrizzleFry »

nikos wrote: 2020 Apr 20, 12:30 I don't think you can do that... perhaps some of the regular expression gurus in the forum will have another idea?
Regex does support case conversions with the \U \L \F \I commands but these do not seem to be supported in the x2 regex.
What regex implementation is x2 using?
User avatar
nikos
Site Admin
Site Admin
Posts: 15771
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: Mass rename question

Post by nikos »

longfellow
Silver Member
Silver Member
Posts: 244
Joined: 2004 Jun 16, 15:09

Re: Mass rename question

Post by longfellow »

FrizzleFry wrote: 2020 Apr 23, 07:20 Regex does support case conversions with the \U \L \F \I commands but these do not seem to be supported in the x2 regex.
Yeah, this is standard Regex, and while these commands are implemented in the Deelx engine, they don't actually work. We tried to troubleshoot this last November, you can read about it here, if so inclined:

viewtopic.php?f=18&t=11784

So sadly, case conversion is off the table until this is resolved :(
User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1241
Joined: 2005 Oct 16, 19:09

Re: Mass rename question

Post by FrizzleFry »

So x2's Mass Rename cannot do case conversions but uppercasing filenames is a fairly easy rename to implement. A simple way is to use a vbscript and assign it to a user command...

create a vbscript file (just a text file with a vbs extension)

Code: Select all

Set WshShell = WScript.CreateObject("WScript.Shell")

if WScript.Arguments.Count = 0 then
	WScript.Echo "No file(s) to rename specified."
	WScript.Quit
end if

Set FSO = CreateObject("Scripting.FileSystemObject")

Sub RenameUpperCase(filename)
	Dim file, name
	Set file = FSO.GetFile(filename)
	name = file.Name
	file.Move UCase(name)
End Sub

For Each file In WScript.Arguments
	If (FSO.FileExists(file)) Then RenameUpperCase file
Next

WshShell.SendKeys "^r"

Set FSO = Nothing
set WshShell = Nothing
then create a user command like

>wscript D:\scripts\VBScript\renuc.vbs $S

change 'D:\scripts\VBScript\renuc.vbs' to the full path of the vbscript file you created

you can even add the user command as a button on a toolbar to make it more convenient to use... just select the files to rename then click the user command button (or run it from the menu)...
pj
Gold Member
Gold Member
Posts: 471
Joined: 2006 Jan 26, 14:01
Location: Florida

Re: Mass rename question

Post by pj »

AWXRENAME hasn't been updated for years but still works for me. A simple rt-click interface with options for LC, UC, Mixed (Title) and custom and PERL script selections, will operate on all selected files in the open folder.

http://www.arniworld.de/downloads.htm
User avatar
FrizzleFry
Platinum Member
Platinum Member
Posts: 1241
Joined: 2005 Oct 16, 19:09

Re: Mass rename question

Post by FrizzleFry »

Yeah. I use awxRename also. Problem is that the file you download from the arniWORLD site now is a passworded archive.
Post Reply