running windows 'start' cmd using spawnl

Fredrik Lundh fredrik at pythonware.com
Wed Aug 23 15:03:48 EDT 2006


Tor Erik wrote:

> I need to start a program in a new cmd-window. To do this I need to 
> execute: start [command]
> With os.system this is straight-forward.
> But I need to do it with spawnl and P_NOWAIT. I.e, asynchronously.
> The problem is that I need to know the path where start resides,
> which I'm unable to find.

os.startfile(command) could work.

</F>





More information about the Python-list mailing list