As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/
Options

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 { $_.name –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?

6ylyzxlir2dz.png

Posts

Sign In or Register to comment.