Problem With Windows PowerShell (Win8)

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.

Did you cd (Change Directory) into the folder you wanted to change names in?

Never mind. I found this utility which done the trick

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.