r/PowerShell • u/roscado • Feb 20 '26
I have two folders with files with different names, the names start with the same 5 digits and extension, but the rest of the name is different, what I want is to change the names of one folder with those of the other.
Hi,
I don't know if I have explained myself correctly, I need a massive renamer that changes the names of the files in the right folder (so to speak) to those on the left, I suppose I will need a script, but that is beyond my control, including how to run it.
Thanks for reading me.
2
Upvotes
4
u/TYGRDez Feb 20 '26
I would suggest trying this: https://www.bulkrenameutility.co.uk/
2
u/Kirsh1793 Feb 20 '26
So, in folder1 you have files like this: 12345name1.ext 12345name2.ext 12345name3.ext ...
And folder2 has: 12345othername1.ext 12345othername2.ext 12345othername3.ext ...
Is that right? Or is the five digit number more like an index? Like this: 00001name1.ext 00002name2.ext ...
Even more important: Do folder1 and folder2 contain exactly the same number of files?
2
u/Nanouk_R Feb 20 '26
Haven't used it much but I think PowerRename from PowerToys (Sysinternals) can do a lot and doesn't require scripting.
1
u/BlackV Feb 21 '26
you are making it hard for people
give an example of the before and after layout
1
u/McAUTS Feb 25 '26
Sounds like homework...