Rename Files In Bulk with % in Name


  1. Posts : 6
    Win7
       #1

    Rename Files In Bulk with % in Name


    Employee just got a new computer with Windows 10 and has several files that were copied over from another computer that have a % sign in the names. Don't ask me how. She has to rename them. Is there a way to change the % to an underscore in all the files at one time?

    Thank you.
      My Computer


  2. Posts : 31,665
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #2

    Learn2010 said:
    Is there a way to change the % to an underscore in all the files at one time?
    Welcome to TenForums @Learn2010

    Yes, but you'll have to use PowerShell to do it. Open PowerShell in the folder containing the files to be renamed (or open a command prompt then type powershell). The command to use in powershell is:

    Code:
    get-childitem *%*.* | foreach { rename-item $_ $_.Name.Replace("%", "_") }
      My Computers


  3. Posts : 6
    Win7
    Thread Starter
       #3

    I will try this. Thank you very much.
      My Computer


  4. Posts : 2,916
    Windows 10 Pro for the Bro
       #4

    There's also a Graphical User Interface program that can do all types of renames to files/folders (for future reference).

    Download: Better File Rename
    After you download and install, select all the files in File Explorer > Right Click > Better File Rename

    Set these options in the program when it opens:
    Category: Text
    Action: Replace text
    Replace: %
    With: _

    Press the Perform Renames button
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:02.
Find Us




Windows 10 Forums