2 ms·
Sometimes / works as a path separator in Windows, sometimes it doesn't. It's not predictable. I never use / on Windows as a result.
by WalterBright 5y 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.
- ygra 5y agoThe 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.