Hey there. I have a crazy large amount of directories, subdirectories, and files where a good chunk of the files and directory names have various Windows invalid characters, and unicode characters that are causing problems. I'm trying to rename all files/folders inside of a directory (and down recursively), to change invalid characters to "_".
I tried power shell, but it had some issues with the path depth. Some forums recommended I look at this utility instead. In PS, the unicode range I used to try to remove was \u0020-\u007F, as well as removing "/", "*", and a few other invalid chars (I think "?" was one of them too).
What would be a regular expression to change these out for an underscore? They are anywhere in the name, possibly many times (names like "Accounting 2012/2013", "files 08/13-06/14", "bob's burgers [invalid char].docx" and so on).
Thanks for any help anyone has, I am getting to the end of the things I know to try to clean this mess up. (Someone migrated an old Mac server to a Windows server and didn't clean the file names in the process, the Mac server is gone, and now the project has been tossed into my lap.)