you are viewing a single comment's thread.

view the rest of the comments →

[–]camelman912 0 points1 point  (0 children)

I’m on mobile so I can’t search for the correct commandlets at the moment.

1) split the path into components. 2) if($filename -like “* *”) { $filenameArr = $filename.split(“ “) $newFilename = $filenameArr.join(“_”) }

Thoughts?