← Back to context

Comment by WalterBright

4 years ago

Sometimes / works as a path separator in Windows, sometimes it doesn't. It's not predictable.

I never use / on Windows as a result.

The only common place where it doesn't work is in CMD for executing programs and as arguments for built-in commands. Everything else goes directly to the relevant APIs which don't care about / or \.

These days using CMD instead of PowerShell should be rare enough and PowerShell certainly doesn't mind the slashes.