I’m trying to remove all underscores from file names in a folder (replacing the underscores with spaces), I’ve tried:
Dir |
Rename-Item -NewName { $_.Name -replace "_"," " }
That doesn’t give any errors but when I navigate to the folder in windows it doesn’t show any sign of working. It’s the first time what I’ve used Windows PowerShell.