Powershell renamer

Want a simple Powershell script to remove spaces in file name? No problem.

Get-ChildItem | Rename-Item -NewName { $_.name -replace " ","_" }

save this into a text file rename the .txt to .ps1.

Play around with the " ","_" and see if that works for you.


This post is locked
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ