Solved Renaming multiple folders

union865

New member
Local time
4:30 PM
Messages
5
I am trying to rename 100's of folders with a persons name convention. What I have now is the first name first and a space and then a last name. Sometimes the first name is instead initials with periods and spaces and then the last name. What I am looking to do is have the last name changed to the front of the folder, then have a comma, then a space, then the first name or initials, whatever was in front before. I have tried many different folder renaming programs and they all do some things really great, but none of them will take the letters after a space and put it in front of the folder name, then add a comma then a space.

Such as;
United States
Change to;
States, United
or;
U. S. America
Change to;
America, U. S.

Thanks for any help with this.
 

My Computer

Computer Manufacturer/Model Number
hp pavilion
OS
win7home64
Last edited:

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
n/a
OS
W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
CPU
AMD Phenom II x6 1100T, 3.3 GHz
Motherboard
ASUS M4A88T-M/USB3 (AM3)
Memory
12GB DDR3 1333 G-Skill (4GB x 2), G-Skill (2GB x 2)
Graphics Card(s)
NVIDIA GeForce GTX 660
Sound Card
Realtek?
Monitor(s) Displays
Samsung S23B350
Screen Resolution
1920x1080
Hard Drives
WD Green 2TB (SATA), WD Green 3TB (SATA), WD Blue 4TB (SATA), WD Blue 6TB (SATA)
PSU
Cooler Master
Case
Antec GX300 Tower
Cooling
3x Antec TRICOOL 120mm Fans
Mouse
Wired Optical
Internet Speed
DSL
Antivirus
Avast
Browser
Pale Moon (64 bit)
Other Info
2018-12-27 Upgraded HDDs
2015-12-10 Upgraded case, graphics card, storage
2015-08-15 Upgraded motherboard & RAM
2015-07-15 Upgraded LM17.1 to LM17.2
Here is the easiest way to do it.
Open the folder, set view to list, highlight all, right click the top file & select rename. Enter the text you want & hit Enter. Job done.
 

My Computer

Computer Manufacturer/Model Number
Look in my Signature.
OS
Win7 H.Prem. 32bit+SP1
Here is the easiest way to do it.
Open the folder, set view to list, highlight all, right click the top file & select rename. Enter the text you want & hit Enter. Job done.

no.



That being said, it shouldn't be too hard to write a batch scrip to do it.
are all names in the "first(space)last" format? if the file name only has the one space, then that would make it pretty easy.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Apple 17" iMac MA199LL (Early 2006)
OS
Windows 8 Pro (32-bit)
CPU
1.83GHz Intel Core Duo
Memory
2GB 667MHz DDR2 SDRAM (PC2-5300) (upgrade)
Graphics Card(s)
ATI Radeon X1600 with 128MB GDDR3 memory
Monitor(s) Displays
17-inch TFT active-matrix LCD, millions of colors
Screen Resolution
1440 x 900
Hard Drives
Hitachi 320GB HDT721032SLA360 7200RPM SATA II (upgrade)
Keyboard
Microsoft Wired Keyboard 600
Mouse
Microsoft Basic Optical Mouse v2.0
Internet Speed
4 Mbps
Antivirus
Microsoft Security Essentials
Browser
Google Chrome
Other Info
WEI:
Base Score: 3.9 Processor: 4.4 Memory 4.7
Graphics: 3.9 Gaming Graphics: 4.1 Primary HD: 5.9
That won't work because it will rename all the folders the same name. And no, it isn't just a name space name format.
 

My Computer

Computer Manufacturer/Model Number
hp pavilion
OS
win7home64
lehnerus2000, I tried all of those programs today and none of them give me what I want. I don't know what scripts are, but I'll google it and see if there is something out there that will do what I want. Thanks for the info though.
 

My Computer

Computer Manufacturer/Model Number
hp pavilion
OS
win7home64
That won't work because it will rename all the folders the same name. And no, it isn't just a name space name format.

Ok. is there any kind of method that is true in all cases, which would allow a program to consistently tell when the first name ends and the last name begins? Or at least enough of the times that you can manually fix them?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Apple 17" iMac MA199LL (Early 2006)
OS
Windows 8 Pro (32-bit)
CPU
1.83GHz Intel Core Duo
Memory
2GB 667MHz DDR2 SDRAM (PC2-5300) (upgrade)
Graphics Card(s)
ATI Radeon X1600 with 128MB GDDR3 memory
Monitor(s) Displays
17-inch TFT active-matrix LCD, millions of colors
Screen Resolution
1440 x 900
Hard Drives
Hitachi 320GB HDT721032SLA360 7200RPM SATA II (upgrade)
Keyboard
Microsoft Wired Keyboard 600
Mouse
Microsoft Basic Optical Mouse v2.0
Internet Speed
4 Mbps
Antivirus
Microsoft Security Essentials
Browser
Google Chrome
Other Info
WEI:
Base Score: 3.9 Processor: 4.4 Memory 4.7
Graphics: 3.9 Gaming Graphics: 4.1 Primary HD: 5.9
Yes there is. There is a space before each last name, so if a program could start at the end of a folder name, go back and look for the first space, then copy everything to the right of that space, insert it in the front of the folder name, then add a comma and a space, it would work perfectly.
 

My Computer

Computer Manufacturer/Model Number
hp pavilion
OS
win7home64
Code:
Set objFS = CreateObject("Scripting.FileSystemObject")
strFolder = "C:\path\of\folder\of\folders"
Set objFolder = objFS.GetFolder(strFolder)
For Each Folder In objFolder.SubFolders
	strFolderName = Folder.Name
	For i=1 To Len(strFolderName)
		if Mid(strFolderName,i,1) = " " Then
			strEndOfFirst = i
		End If
	Next
	strFirstName = Mid(strFolderName,1,strEndOfFirst)	
	strLastName = Mid(strFolderName,strEndOfFirst + 1)
	strNewName = strLastName & ", " & strFirstName
	Folder.Name=strNewName
Next
change "C:\path\of\folder\of\folders" to the folder where the folders are located
save as "rename.vbs" but if you use notepad, remember to save as type: All Files(*.*)
then you should be able to just double click it and it'll run.
feel free to try it on sample folders first.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Apple 17" iMac MA199LL (Early 2006)
OS
Windows 8 Pro (32-bit)
CPU
1.83GHz Intel Core Duo
Memory
2GB 667MHz DDR2 SDRAM (PC2-5300) (upgrade)
Graphics Card(s)
ATI Radeon X1600 with 128MB GDDR3 memory
Monitor(s) Displays
17-inch TFT active-matrix LCD, millions of colors
Screen Resolution
1440 x 900
Hard Drives
Hitachi 320GB HDT721032SLA360 7200RPM SATA II (upgrade)
Keyboard
Microsoft Wired Keyboard 600
Mouse
Microsoft Basic Optical Mouse v2.0
Internet Speed
4 Mbps
Antivirus
Microsoft Security Essentials
Browser
Google Chrome
Other Info
WEI:
Base Score: 3.9 Processor: 4.4 Memory 4.7
Graphics: 3.9 Gaming Graphics: 4.1 Primary HD: 5.9
AHHHHHHHHHH, it worked perfectly FuturDreamz. I didn't know you could do that within Notepad. I actually tried to run a test on it, but it ran when I tried to open it and modify it to go to a sub-folder first. They all came out GREAT. Geez, what a relief. Thanks a lot. Perfect perfect perfect
 

My Computer

Computer Manufacturer/Model Number
hp pavilion
OS
win7home64
Renaming multiple folders Solved by BatchRenameFiles Tool .
you can find this too by searching tools -BatchRenameFiles Tool
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
hp
OS
32
CPU
3
Memory
320
Back
Top