Recursive Mass File Rename

get-childItem -path "C:\my path" -recurse | Where {$_.extension -eq ".txt"} | rename-item -newname { $ -replace "ACME","ACMECorp" }
Replace the path with the path you want to use e.g. "C:\My Path"
Set the file extension (e.g. txt) and replace a substring (e.g. ACME) with another substring (ACMECorp)

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.