Convert Windows formatted path to Unix style

Question:

Suppose you have a path like so:

Is there a more reliable in PowerShell way of converting that path to Unix format than just replacing the \s like this?

Answer:

That’s the way I would do it, I’m not familiar with any other (built-in) way.

Source:

Convert Windows formatted path to Unix style by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply