Wednesday, September 23, 2015

windows - How do you quickly remove underscores from folder names?


What is the easiest and fastest way to remove underscores from folder names in Windows?


Running a Google search I found a VB script that automatically removes all underscores from file names in the current directory when run. It's simple enough. But it doesn't work with folders.


What I would like to do is to remove all underscore characters for all the folders in the current directory, so that instead of john_smith I get John Smith. How do I do that?


I know that there are hundreds upon hundreds of different batch renaming tools for Windows on the web. But most of the ones I have come across require that the user uses regular expressions to describe the problem and also to describe what the new name should look like. That's not very easy or user friendly.


Can you at least point me to a good batch renaming tool that's easy to understand, and that is able to rename folders? I don't want to randomly install and uninstall some useless bloatware.


Answer



Bulk Rename Utility is a lightweight program that can accomplish this. In addition to supporting the use of regular expressions, it also has features to accomplish what you want in a more user-friendly way.


To use Bulk Rename Utility, install and start the program (there is also a portable version if you don't want to install it), and navigate to the folder that contains the folders you want to rename. Then, select all of the folders you want to rename.


In order to replace all underscores with spaces, in the Repl. (3) section at the bottom, type an underscore in the Replace box and a space in the With box.


Replace


In order to change the names to Title Case like in your example, use the Case (4) section. Choose Title from the drop-down menu.


Case


Look at the names in the New Name column and make sure that they are what you want. When you are done, click Rename in the lower-right corner.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...