Bulk replace whitespaces of folders and files in directory

PHOTO EMBED

Tue Apr 13 2021 06:10:18 GMT+0000 (UTC)

Saved by @Jazz

Get-ChildItem -Directory | Rename-Item –NewName { $_.name –replace “ “,”_” }
content_copyCOPY

https://gist.github.com/ethangardner/22479f7e8d0c09284547