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
[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
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
# [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 *
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
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
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()
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
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
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
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
11 matches
Mail list logo