Current Events > Is there a way to mass edit file names to start with [CV] [RW] ect?

Topic List
Page List: 1
Bad_Mojo
06/09/21 1:16:00 AM
#1:


Long story short I'm transferring a lot of pictures over for a pro wrestling simulator and I want to order them. Right now I have Real World pictures [Hulk Hogan, Steve Austin, Chris Jericho, ect] and I have the C-Verse pictures [Bart Biggins, Cerberus, Jade Lizard], but in two different picture folders, and you can only use one at a time. So I can just copy and past into one folder.

But I want to keep them separated. If I just copy and past them into the folder fight now the list is going to look like -

Bart Biggins
Cerberus
Chris Jericho
Hulk Hugan
Jay Lizard
Steve Austin

But I want it to look like this -

[CV] Bart Biggins
[CV] Cerberus
[CV] Jay Lizard
[RW] Chris Jericho
[RW] Hulk Hogan
[RW] Steven Austin

Because there are 1,000s of pictures, lol. So can I mass edit all the files in the CV Folder to start with [CV] and then mass edit all the files in the Real World Folder to start with [RW] and so on with other picture folders? Then I can have one huge picture folder that has all of the picture folders in it

---
... Copied to Clipboard!
Trumble
06/09/21 1:16:32 AM
#2:


Google "Rename Master". Yes, it supports RegEx if you need that. EDIT: Yes, it's free.

Tag me if you need help with it, not necesserially going to see replies here otherwise.

---
The word "Trumble" is not allowed in a signature.
... Copied to Clipboard!
Kloe_Rinz
06/09/21 1:18:07 AM
#3:


Powershell can do this easily

otherwise Im sure theres plenty of free tools on the internet that can do this as well
... Copied to Clipboard!
Bad_Mojo
06/09/21 1:20:14 AM
#4:


... Copied to Clipboard!
Kloe_Rinz
06/09/21 1:31:01 AM
#5:


Get-childitem path\to\files | rename-item -newname {$_.BaseName.insert(0,[CV] ) + $_.Extension} -WhatIf

that wont actually rename files, just use it to see if it will do exactly what you want. If you are happy, remove the -whatif
... Copied to Clipboard!
Bad_Mojo
06/09/21 10:39:31 AM
#6:


I'm not going to lie, I'm really confused by all of that, tbh

---
... Copied to Clipboard!
Kloe_Rinz
06/09/21 4:05:22 PM
#7:


Basically get-childitem gets all children of something, so in this case we give it a folder and it gives you all the files in the folder.

then for each file, we rename it to be whatever its currently name, plus [CV] inserted right at the front (0th position), and we retain the file extension (.jpg or whatever) as well. -whatif puts it into testing mode and it doesnt actually make any changes, it just shows you what changes it would have made if you take out -whatif
... Copied to Clipboard!
Topic List
Page List: 1