if you have bulk files of any type and you want to replace certain character with another character, there is some method by which it can be done very fast.
Steps:
- create a vbs file, “rename_underscores.vbs”
- copy and paste this code inside that file:
Set objFso = CreateObject(“Scripting.FileSystemObject”)
Set Folder = objFSO.GetFolder(“D:\downloads\pdf”)
For Each File In Folder.Files
sNewFile = File.Name
sNewFile = Replace(sNewFile,”—“,” “)
if (sNewFile<>File.Name) then
File.Move(File.ParentFolder+”\”+sNewFile)
end if
Next
3. change the location of the folder where you want to rename files in line 2 of code
That’s it. Let us know if you have any issue. comment here.