Tim Peters added the comment:
All versions of cmd.exe want backslashes in paths for the commands implemented
_by_ cmd.exe - those interpret a forward slash as indicating an option. For
example, here on Win10 Pro:
C:\WINDOWS\system32>dir c:\Windows\System32\xwreg.dll
Volume in drive C is OS
Volume Serial Number is 5E8B-CFAC
Directory of c:\Windows\System32
10/30/2015 02:17 AM 120,320 xwreg.dll
1 File(s) 120,320 bytes
0 Dir(s) 2,880,244,813,824 bytes free
`dir` is implemented by cmd.exe, so that example doesn't work with forward
slashes:
C:\WINDOWS\system32>dir c:/Windows/System32/xwreg.dll
Parameter format not correct - "Windows".
----------
nosy: +tim.peters
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27045>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com