Re: killing process in windows

2005-06-09 Thread Veronica Tomescu
Hi Mick,   Thanks for your reply.It works fine until killing the process.Wmplayer is started,I can see the process in the task manager list,I also tried with notepad and it's the same problem. I appreciate if you can help. Vero Trent Mick <[EMAIL PROTECTED]> wrote: [Miki Tebeka wrote]> Hello Veroni

Re: killing process in windows

2005-06-09 Thread Trent Mick
[Miki Tebeka wrote] > Hello Veronica, > > >I am using Trent's process.py but I have a problem with killing the > >processes in windows. > >For example : > > > >import process,time > > > >p=process.ProcessOpen('C:\Program Files\Windows Media > >Player\wmplayer') > >tim

Re: killing process in windows

2005-06-09 Thread Miki Tebeka
Hello Veronica, >I am using Trent's process.py but I have a problem with killing the >processes in windows. >For example : > >import process,time > >p=process.ProcessOpen('C:\Program Files\Windows Media >Player\wmplayer') >time.sleep(3) >p.kill() > >will star

Re: Killing process

2005-05-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-05-01 05:07:27 -0700: > I actually tried mapping the PID to an integer value and it still > didn't work. At any rate, I found another way to do it. Thanks anyways. What the kind people have been trying to get through is that the win32api.TerminateProcess() does *

Re: Killing process

2005-05-02 Thread Peter Hansen
Harlin Seritt wrote: > I actually tried mapping the PID to an integer value and it still > didn't work. At any rate, I found another way to do it. Thanks anyways. For those who might follow in your footsteps, it might be nice to describe your solution... (and to reduce the likelihood somebody wi

Re: Killing process

2005-05-01 Thread Harlin Seritt
I actually tried mapping the PID to an integer value and it still didn't work. At any rate, I found another way to do it. Thanks anyways. -- http://mail.python.org/mailman/listinfo/python-list

Re: Killing process

2005-04-30 Thread Peter Hansen
Harlin Seritt wrote: I think I need something besides TerminateProcess(). Is there anyway possible to terminate a process by just passing a string value to the function? Honestly, I am not interesting in terminating a process by its handle. This is a bizarre request. Why can't you just call int()

Re: Killing process

2005-04-29 Thread Harlin Seritt
I think I need something besides TerminateProcess(). Is there anyway possible to terminate a process by just passing a string value to the function? Honestly, I am not interesting in terminating a process by its handle. -- http://mail.python.org/mailman/listinfo/python-list

Re: Killing process

2005-04-29 Thread Peter Hansen
Harlin Seritt wrote: I am using os.getpid() to get the pid value for a script running. I store that value (as a string) to a file. Later when I try to kill that pid (i pull this from the file as a string value) I get errors. [...] File "vngconsole.py", line 27, in StopVngSvc win32api.Termina

Re: Killing process

2005-04-29 Thread Harlin Seritt
Yeah I've kind of figured that. I was just wanting to know what I could use to kill a pid that is a string value. Thanks though. Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: Killing process

2005-04-29 Thread Roger Upole
TerminateProcess takes a process handle, not a pid. win32api.OpenProcess will give you a handle. Roger "Harlin Seritt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am using os.getpid() to get the pid value for a script running. I > store that value (as a string) to a f