Rename multiple files in Windows explorer

#1
Is it possible to rename only part of a filename when multiple files are selected in Windows Explorer?

I sometimes have hundreds of files to rename and I have to do them individually.
 


Josephur

Windows Forum Admin
Staff member
Premium Supporter
#2
If you are renaming hundreds of files you really should learn how to use a command prompt or powershell :)
 


Neemobeer

Windows Forum Team
Staff member
#3
Completely agree you have to do something more than once, powershell is the way to go
 


#4
Is it possible to rename only part of a filename when multiple files are selected in Windows Explorer?

I sometimes have hundreds of files to rename and I have to do them individually.
I can use both, do you know how to do it?
 


#5
If you are renaming hundreds of files you really should learn how to use a command prompt or powershell :)
I can use both, do you know how to do it, if so please post, thanks...
 


Josephur

Windows Forum Admin
Staff member
Premium Supporter
#6
It really depends on the rename operation, can you give us an example of what you're renaming the files to/from?
 


#7
It really depends on the rename operation, can you give us an example of what you're renaming the files to/from?
Hi Josephur
Thanks for your help.

A typical filename is: 1234-ABC123-GA.dwg

I need to replace the first four figures.

Thanks again...
 


Josephur

Windows Forum Admin
Staff member
Premium Supporter
#8
ok let's take a folder with a few files in it as an example.

If we start a Command Prompt (I recommend not doing this as Administrator just in case you goof, don't want to rename important files accidentally)

So typically it will drop you into C:\Users\YourUsername

You can then use the CD command to Change Directory to where you need for instance in our example the files reside in C:\Autocad

C:\Users\YourUsername>CD C:\Autocad

Then you can use dir to get a directory listing which will show you your files.

In our case it returns the three test files I created for this exercise.
1234-test1.dwg
1234-test2.dwg
1234-test3.dwg

C:\Autocad>ren 1234-test*.dwg project1-*.dwg

C:\Autocad>dir *.dwg
Volume in drive C has no label.
Volume Serial Number is 6882-818E

Directory of C:\Autocad>

08/15/2016 06:41 PM 13 project1-1.dwg
08/15/2016 06:41 PM 13 project1-2.dwg
08/15/2016 06:41 PM 13 project1-3.dwg
3 File(s) 39 bytes

See how the 1234-test# was replaced with project1-#? This is just a simple example, you can do even more with different wildcards and scripting. If you get into PowerShell scripting you should easily be able to find PowerShell scripts that do an even more extensive job. You can probably also find a program that accepts regex patterns and renames files based on them.
 


#9
ok let's take a folder with a few files in it as an example.

If we start a Command Prompt (I recommend not doing this as Administrator just in case you goof, don't want to rename important files accidentally)

So typically it will drop you into C:\Users\YourUsername

You can then use the CD command to Change Directory to where you need for instance in our example the files reside in C:\Autocad

C:\Users\YourUsername>CD C:\Autocad

Then you can use dir to get a directory listing which will show you your files.

In our case it returns the three test files I created for this exercise.
1234-test1.dwg
1234-test2.dwg
1234-test3.dwg

C:\Autocad>ren 1234-test*.dwg project1-*.dwg

C:\Autocad>dir *.dwg
Volume in drive C has no label.
Volume Serial Number is 6882-818E

Directory of C:\Autocad>

08/15/2016 06:41 PM 13 project1-1.dwg
08/15/2016 06:41 PM 13 project1-2.dwg
08/15/2016 06:41 PM 13 project1-3.dwg
3 File(s) 39 bytes

See how the 1234-test# was replaced with project1-#? This is just a simple example, you can do even more with different wildcards and scripting. If you get into PowerShell scripting you should easily be able to find PowerShell scripts that do an even more extensive job. You can probably also find a program that accepts regex patterns and renames files based on them.
 


#10
ok let's take a folder with a few files in it as an example.

If we start a Command Prompt (I recommend not doing this as Administrator just in case you goof, don't want to rename important files accidentally)

So typically it will drop you into C:\Users\YourUsername

You can then use the CD command to Change Directory to where you need for instance in our example the files reside in C:\Autocad

C:\Users\YourUsername>CD C:\Autocad

Then you can use dir to get a directory listing which will show you your files.

In our case it returns the three test files I created for this exercise.
1234-test1.dwg
1234-test2.dwg
1234-test3.dwg

C:\Autocad>ren 1234-test*.dwg project1-*.dwg

C:\Autocad>dir *.dwg
Volume in drive C has no label.
Volume Serial Number is 6882-818E

Directory of C:\Autocad>

08/15/2016 06:41 PM 13 project1-1.dwg
08/15/2016 06:41 PM 13 project1-2.dwg
08/15/2016 06:41 PM 13 project1-3.dwg
3 File(s) 39 bytes

See how the 1234-test# was replaced with project1-#? This is just a simple example, you can do even more with different wildcards and scripting. If you get into PowerShell scripting you should easily be able to find PowerShell scripts that do an even more extensive job. You can probably also find a program that accepts regex patterns and renames files based on them.
This works perfectly for what I need, it has saved me a lot of renaming work, thank you very much.

Do you know how to add four figures to an existing list of files?
 


#11
you can use "KrojamSoft BatchRenameFiles Tool"...It's a great tool to rename multiple files easily...
 


Josephur

Windows Forum Admin
Staff member
Premium Supporter
#12
Do you know how to add four figures to an existing list of files?
Sure you could easily append things, let's say you have files test1.txt test2.txt and test3.txt in a folder. If you do "ren *.txt *-append.txt" they will now be named test1-append.txt, test2-append.txt, test3-append.txt
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.