[python-win32] running windows 'start' cmd using spawnl
Metz, Bobby W, WWCS
bwmetz at att.com
Wed Aug 23 21:41:24 CEST 2006
There is no path to start, it's a built-in shell cmd. If you want to start it asynchronously just use start's background method.
os.system("start /B command")
I use this all the time to launch things in the background and continue on my merry way.
Bobby
-----Original Message-----
From: python-win32-bounces+bwmetz=att.com at python.org
[mailto:python-win32-bounces+bwmetz=att.com at python.org]On Behalf Of Tor
Erik Sønvisen
Sent: Wednesday, August 23, 2006 11:25 AM
To: python-win32 at python.org
Subject: [python-win32] running windows 'start' cmd using spawnl
Hi,
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
_______________________________________________
Python-win32 mailing list
Python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32
More information about the Python-win32
mailing list