[Python-Dev] os.popen is not working (original) (raw)

Amit Khan amit@ontrackindia.com
Fri, 10 Jan 2003 12:51:23 +0530


Hi, In one of my windows box

os.popen("ipconfig /all") is not working.

It is showing an error message like

Traceback (most recent call last): File "", line 1, in ? WindowsError: [Errno 123] The filename, directory name, or volume label syntax i s incorrect: 'C:\WINNT\system32\cmd.exe\ /c dir'

I guess "\" after "C:\WINNT\system32\cmd.exe" is creating problem.

What can be reason behind it?

Warm Regards, Amit Khan