Rename Files In Bulk with % in Name

  1.    06 Jul 2017 #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 ComputerSystem Spec

  2. Bree's Avatar
    Posts : 9,919
    10 Home x64 (1809) (10 Pro on 2nd pc)
       06 Jul 2017 #2

    Learn2010 said: View Post
    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:

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

  3.    06 Jul 2017 #3

    I will try this. Thank you very much.
      My ComputerSystem Spec

  4. pepanee's Avatar
    Posts : 1,138
    Windows 10 Professional
       06 Jul 2017 #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 ComputerSystem Spec


Related Threads
I have just bought a Surface 4 Pro with k'brd. I find that one old program will no longer run correctly, so need to make a Batch file to replace it. Windows 10 screen capture produces files all with the same name, appending a serial number. ...
I have renamed a macrium from its long chain of letters and numbers to simply D backup 010417. I read in another posting here that macrium sometimes will not restore a backup file that has been renamed. I'm trying to determine if this is in fact...
I recently had a hard drive failure that cost me fifteen years worth of files and data. I am recovering the files currently using Puran file recovery, which seems to be working. However, all the MS Word files (for instance) I recover are simply...
Quite frankly I'm surprised no one has brought this up (or I am using the wrong search terms). When copying files in explorer, Windows 7 (I can't remember anything older than that LOL) I am asked what I want to do with copying files that have the...
Batch Rename Deletes Files in Performance & Maintenance
Hey all, I just upgraded to Windows 10 last night, and I've been playing around with the new File Explorer. One thing I tried was the batch rename function (by which I mean just selecting multiple files and clicking "rename"). I quickly realized...
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 21:28.
Find Us