I have multiple files in a folder all the different name in windows with common suffix say _(new)
. Example:
File Name_(new).mp4
How do I rename all the files by removing the suffix _(new)
but not changing the name of the files?
Answer
Running the REN
or RENAME
command in Command Prompt should work for you:
Assuming the type is always .mp4
:
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:
C:\Users\Macraze
or it might put you in the
system32
folder:C:\windows\system32
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.
No comments:
Post a Comment