As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread:

WIndows Power Shell Recursive Rename

tinwhiskerstinwhiskers Registered User regular
So at work we are switching over from Google Drive to OneDrive/Office 365.

We large number of files(approximately 13,000) that have a pound sign in the file name. 'Material Certificate Job #123 Part #456' type.

I've found a power shell command

Dir | Rename-Item –NewName { $ –replace "#","N" }

the renames them for me. But I need to be in each individual folder to run it, and these files are spread across probably 300 different folders, buried to various degrees in sub folder trees.

Does anyone know of a recursive flag of some type I can add into the command so it will bore down to all these files automatically?



Sign In or Register to comment.