Rename files in cascade in Windows 10

By | October 22, 2016

Today, I had to rename a lot of files in cascade. Instead of having to do this manually, I had made some search to automate this in minimal. The result is the following PowerShell command :

Dir | Rename-Item ?NewName { $ ?replace ?replace_pattern?,?new_pattern? }

So to replace all dots by spaces, the command is :

Dir | Rename-Item ?NewName { $ ?replace ?\.?,? ? }

Don’t forget the \ character to escape the special characters.

See you soon


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.