Delete part of name on Multiple Files

JuanMena

90's Kid, Old Skull Gamer & Artist
OP
Member
Joined
Dec 17, 2019
Messages
4,893
Trophies
2
Age
30
Location
the 90's 💙
XP
10,128
Country
Mexico
EDIT: So Alexander stops whining

Open Powershell. And it should start with C:\Username

Followed of that, type: cd route of files. For instance:

cd Music\Playlist

Press enter.

Then copy paste this code:
Dir | Rename-Item -NewName {$_.name -replace "OLD-FILE-NAME-PART",""}

Press enter.

Bold text indicates that you have to type whatever you want to erase from your files in that folder.

That's it.

To replace part of the name of the files:
Dir | Rename-Item -NewName {$_.name -replace "OLD-FILE-NAME-PART,"NEW-FILE-NAME-PART"}
 
Last edited by JuanMena,
  • Like
Reactions: Alexander1970

JuanMena

90's Kid, Old Skull Gamer & Artist
OP
Member
Joined
Dec 17, 2019
Messages
4,893
Trophies
2
Age
30
Location
the 90's 💙
XP
10,128
Country
Mexico
Good Morning,my Friend.:)


And which please ?

Would you be so kind and share your Secret with us please ?

Thank you.:)
BTW: GOOD MORNING ALEXANDER!

Stop whining, I'm kind. p1ngy has shown me that us Masters must be kind to peasants.
 
Last edited by JuanMena,
  • Like
Reactions: Alexander1970

notimp

Well-Known Member
Member
Joined
Sep 18, 2007
Messages
5,779
Trophies
1
XP
4,420
Country
Laos
Or for people not living in powershell, download Total Commander, it is free to use (with an option to remove the license nag against a donation) and has a multi rename tool included, that can be used without relying on google foo for the powershell equivalent of sed. :)

You first have to mark al the files it should take into consideration. So ctrl+A in the directory. (Or by rightclicking individual files, or shift rightclicking..)

edit: Afair this also supports wildcards and regex. (So you could easily rename files with different numbers in them f.e. in bulk, this way.)
 
Last edited by notimp,
  • Like
Reactions: colebob9

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    OctoAori20 @ OctoAori20: Nice nice-