Subprocess module question.

Gabriel Genellina gagsl-py2 at
Wed Aug 20 09:42:02 CEST 2008

En Tue, 19 Aug 2008 22:06:13 -0300, aditya shukla  
<adityashukla1983 at> escribi�:

> I am using windows vista and i am trying to communicate with various
> processes.
> so when i do
> import subprocess
> proc=subprocess.Popen('cmd.exe')
> --This opens the command prompt
> But when i do
> proc=subprocess.Popen('netscan.exe')
> it gives an error
> WindowsError: [Error 2] The system cannot find the file specified
> However "netscan.exe" is present on my system.

Is it on your system PATH? Can you execute "netscan" from a console at the  
same directory as your script?

Gabriel Genellina

More information about the Python-list mailing list