How do I start from python sth like "MyExe.exe InFile"?

questioner bstoyanov at dspace.de
Fri May 14 09:35:20 EDT 2004


Hi folks,

Id appreciate if you can help:
I want to start an exe which takes as an argument filename. What I tried
was:

os.spawnl(os.P_NOWAIT,('processor.exe'),'filename.ext'))

I also tried:
os.execl(r'DRIVE:\WINNT\system32\cmd.exe',
'/k',('processor.exe'),'filename.ext'))
but is simply the command line and stopped.
However I didnt achieve the expected result and got some number like:
788.

Can anyone help?

Thanx in advance




More information about the Python-list mailing list