1.    06 Jul 2017 #1
    Join Date : Jul 2017
    Posts : 2

    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.    06 Jul 2017 #2
    Join Date : Aug 2016
    S/E England
    Posts : 4,520
    10 Home x64 (1709) (10 Pro on 2nd pc)

    Quote Originally Posted by Learn2010 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
    Join Date : Jul 2017
    Posts : 2
    Thread Starter

    I will try this. Thank you very much.
      My ComputerSystem Spec
  4.    06 Jul 2017 #4
    Join Date : Jul 2016
    Granite Bay, CA
    Posts : 712
    Windows 10 Professional

    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


Similar Threads
Thread Forum
DOS CMDs - For and Forfiles to rename files
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. ...
General Support
Is it okay to rename macrium backup files
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...
Backup and Restore
How to Bulk Rename files with information from file "properties"?
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...
General Support
File Explorer rename files with the same name when copying
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...
General Support
Batch Rename Deletes Files
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...
Performance & Maintenance
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 22:47.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App

Windows 10 Forums