Windows vs. Linux
Gerhard Fiedler
gelists at gmail.com
Wed Aug 2 15:27:28 EDT 2006
On 2006-08-02 13:24:10, Dennis Lee Bieber wrote:
> Change Directory may work... but
>
> C:\Documents and Settings\Dennis Lee Bieber>cd c:\
>
> C:\>cd /windows/system32
>
> C:\WINDOWS\SYSTEM32>cd c:\
>
> C:\>dir /windows/system32
> Parameter format not correct - "windows".
Since '/' is used as standard command line parameter separator, any command
that uses standard Windows command line parameters can't accept a path with
'/' as argument; it wouldn't know how to differentiate between a path
element and an argument. Try
C:\>dir "/windows/system32"
That was one of the original reasons for using backslashes as path
separator: the existing code base that used the slash as command line
argument separator.
Gerhard
More information about the Python-list
mailing list