News for hackers. Stuff that matters.
Re:Why Does Windows Use Backslash as Path Separator? by naikrovek on Wednesday April 24, 2024 @06:51PM (#40150837)
Windows itself is fine with forward slashes as a path separator, as well, though LOTS of userland Windows applications weren’t aware of this and enforced backslashes themselves.

Command lines, graphical shells, OS save and open file dialogs do not care if you use slash or backslash, and the Win32 API has never enforced backslashes as a path separator.

Re:Why Does Windows Use Backslash as Path Separator? by Dwedit on Wednesday April 24, 2024 @07:32PM (#40151255)
You'll be surprised what the Win32 API will accept as a path. You can run 'type \\?\GLOBALROOT\Device\OSDataDevice\Windows\win.ini' at a command prompt, and it will succeed. You can even provide a path like that to MS Paint on the command line, and it will happily open the file. But Shell32 (Windows Explorer and File Load/Save dialogs) won't accept that kind of path.