Rename multiple files in Windows explorer

Discussion in 'Windows 10 Help and Support' started by dontaylor, Aug 15, 2016.

  1. dontaylor

    dontaylor New Member

    Joined:
    Aug 15, 2016
    Messages:
    6
    Likes Received:
    0
    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.
     
  2. Josephur

    Josephur Windows Forum Admin
    Staff Member Premium Supporter

    Joined:
    Aug 3, 2010
    Messages:
    1,050
    Likes Received:
    137
    If you are renaming hundreds of files you really should learn how to use a command prompt or powershell :)
     
  3. Neemobeer

    Neemobeer Windows Forum Team
    Staff Member

    Joined:
    Jul 4, 2015
    Messages:
    3,303
    Likes Received:
    499
    Completely agree you have to do something more than once, powershell is the way to go
     
  4. dontaylor

    dontaylor New Member

    Joined:
    Aug 15, 2016
    Messages:
    6
    Likes Received:
    0
    I can use both, do you know how to do it?
     
  5. dontaylor

    dontaylor New Member

    Joined:
    Aug 15, 2016
    Messages:
    6
    Likes Received:
    0
    I can use both, do you know how to do it, if so please post, thanks...
     
  6. Josephur

    Josephur Windows Forum Admin
    Staff Member Premium Supporter

    Joined:
    Aug 3, 2010
    Messages:
    1,050
    Likes Received:
    137
    It really depends on the rename operation, can you give us an example of what you're renaming the files to/from?
     
  7. dontaylor

    dontaylor New Member

    Joined:
    Aug 15, 2016
    Messages:
    6
    Likes Received:
    0
    Hi Josephur
    Thanks for your help.

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

    I need to replace the first four figures.

    Thanks again...
     
  8. Josephur

    Josephur Windows Forum Admin
    Staff Member Premium Supporter

    Joined:
    Aug 3, 2010
    Messages:
    1,050
    Likes Received:
    137
    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.
     
    dontaylor likes this.
  9. dontaylor

    dontaylor New Member

    Joined:
    Aug 15, 2016
    Messages:
    6
    Likes Received:
    0
     
  10. dontaylor

    dontaylor New Member

    Joined:
    Aug 15, 2016
    Messages:
    6
    Likes Received:
    0
    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. Ronald23

    Ronald23 Member

    Joined:
    Apr 11, 2017
    Messages:
    1
    Likes Received:
    0
    you can use "KrojamSoft BatchRenameFiles Tool"...It's a great tool to rename multiple files easily...
     
  12. Josephur

    Josephur Windows Forum Admin
    Staff Member Premium Supporter

    Joined:
    Aug 3, 2010
    Messages:
    1,050
    Likes Received:
    137
    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
     

Share This Page

Loading...