[python-win32] running windows 'start' cmd using spawnl

2006-08-23 Thread Tor Erik Sønvisen
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.

Re: [python-win32] running windows 'start' cmd using spawnl

2006-08-23 Thread Metz, Bobby W, WWCS
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: [EMAI

[python-win32] Re: New to Python from Perl

2006-08-23 Thread Roger Upole
> Hey all I am learning Python and having a fun time doing so. I have a > question for y'all, it has to do with active directory. > > I want to get the last login for a computer from Active Directory. I am > using the active_directory module and here is my > code. > > [START] > > import active

[python-win32] Re: running windows 'start' cmd using spawnl

2006-08-23 Thread Roger Upole
> 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 u

[python-win32] Re: FrontPage COM Object Events

2006-08-23 Thread Roger Upole
># Hi > # I want to get events of FrontPage Web and Page object models with this > code. > # OnPageNew and OnActivate works properly but when I click on the page > nothing happen. > # I know that I want to get events of two different COM objects. > # But I don't know how can I do that. > # (I run t