I want to replace all the _ to be a space in a filename. How can I do it quickly since I got lots of _ charaters to replace?
feedback
|
|
vbScript should do it for you. Create a file called "rename_underscores.vbs" containing the following.
Make sure the folder name is correct. (In the example, I've used c:\test) And then double click your file to do the renaming. | |||
|
feedback
|
|
Windows-based renaming tool, the most powerful there is, and it's free. http://www3.telus.net/pfrank/ | |||
|
feedback
|
|
This is within the realms of a dos bat file. Create a bat file (New->Text file, rename extension to .bat) then copy the blue sections below into it. I'll split it into sections and explain what it's doing. Print the current state of the directory for comparasson later
List the files in the directory, then for all the ones that contain an underscore and end in .txt, call ProcessFile on them.
The syntax "str=%str:x=y%" replaces instances of x with y. In this case, we're replacing "_" with nothing
That's it! Now it just prints what was changed so we can confirm it's working as expected;
Results (Not part of the bat file)
| ||||
|
feedback
|
|
I recommend using a 3rd party tool like Bulk Rename Utility. It's free and it has an installer less than 1 MB. | |||||||||||
feedback
|
