I have multiple files in a folder all the different name in windows with common suffix say
How do I rename all the files by removing the suffix
_(new) but not changing the name of the files?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
RENAME command in Command Prompt should work for you:
Assuming the type is always
RENAME *_(new).mp4 *.mp4
Otherwise, the following should work:
RENAME *_(new).* *.*
First, you want to
CD into the folder it's in.
If you start your computer normally, CMD should put you in your user folder, e.g:
or it might put you in the
Either way, you can
CD into the folder you want by typing something like:
C:\Users\Macraze> CD Downloads //whoops, wrong folder, you can just 'CD ../' out C:\Users\Macraze\Downloads> CD ../ C:\Users\Macraze> CD Desktop C:\Users\Macraze\Desktop> CD Misc C:\Users\Macraze\Desktop\Misc> RENAME *_(new).* *.*
When you run this command, the asterisk
* is called a wildcard, meaning all content that matches the rule of having
_(new). in between the filename / extension will get renamed.