Mac users have created numerous folders and files with leading and trailing spaces. Does anyone know of a batch or VB script to recursively locate and remove the illegal spaces?
Example folder: "12 "
Example folder: " stuff"
The following works, but I'm hoping there's a better solution.
ren "\\?\path-to-illegal-folder" newname
ren "\\?\path-to-illegal-file" newname