When did Windows start accepting forward slash as a path separator?

Michael Geary Mike at DeleteThis.Geary.com
Fri Sep 26 04:04:14 CEST 2003


> Stephen Ferg wrote:
> > But now, among a small group of cognoscenti, it is a truism that this
> > is a myth, and that Windows will allow you to use either the forward
> > or the backward slash as a pathname separator.

Ben Finney wrote:
> I highly doubt it, since the forward slash (or just "slash") is the
> conventional Windows command-line option indicator, analogous to the
> hyphen on Unix.  To accept it as the start of a filename would break
> zillions of existing systems, for no appreciable benefit to Microsoft.

Actually, every version of Windows, and every version of MS-DOS from 2.0 on,
has accepted "/" as a path delimiter.

Don't confuse the command line with the Windows or DOS kernel. Most command
lines don't allow "/" because it conflicts with the use of "/" for a switch
deliminer. But the Windows and DOS kernels are happy with either "\" or "/".

-Mike






More information about the Python-list mailing list