running windows 'start' cmd using spawnl

Gabriel Genellina gagsl-py at yahoo.com.ar
Wed Aug 23 14:26:34 EDT 2006


At Wednesday 23/8/2006 14:22, 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.

On Windows NT, XP, 2003 and others, there is no "start.exe" 
executable; it's an internal command. It only exists on 95, 98, maybe ME.
Try the subprocess module.


Gabriel Genellina
Softlab SRL 


	
	
		
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas




More information about the Python-list mailing list