[python-win32] Re: running windows 'start' cmd using spawnl
rwupole at msn.com
Thu Aug 24 05:01:13 CEST 2006
> 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.
> Does anyone know where this command is located, or an alternative way of
> doing what I want?
> regards tores
os.startfile is async. You could also use win32api.ShellExecute
directly (os.startfile call this function under the covers) or
win32process.CreateProcess if you need more flexibility.
More information about the Python-win32