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

Tony Meyer ta-meyer at ihug.co.nz
Fri Sep 26 00:34:44 EDT 2003


>   * None of the standard command shells (CMD or COMMAND) will 
> accept forward slashes.  Even the "cd ./tmp" example given in 
> a previous post fails.

Not true:

"""
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>cd /spambayes

C:\spambayes>cd ./spambayes

C:\spambayes\spambayes>
"""

This is with cmd.exe in XP (as above).  command.exe does try and use it as a
switch.  I have no idea about older versions, nor do I care <wink>.

=Tony Meyer






More information about the Python-list mailing list