Killing a process under Windows NT/2K
Christopher Encapera
ChrisE at lantech.com
Fri Apr 26 09:42:32 EDT 2002
"Ingo Blank" <spam at yourself.com> writes:
> Hi,
>
> I need to kill a process under Windows (NT/2K), whose PID is known.
> Unfortunately os.kill() doesn't work under Windows.
> How can I achieve this anyway?
>
> Thanks in advance
>
>
>This might help. You have to have the win32all extensions installed,
>but so should *everybody* that uses python on win32 anyway.
>
You could also call kill.exe from the WinNT resource kit. I went looking
for this handy app in the win2k kit the other day and found a gui version
(rkill.exe if I remember) but not the plain cmd line kill.exe, so I just
borrowed it from my WinNT partition and it works fine on 2k...
Christopher Encapera
Lantech.Com
chrise at lantech.com
502-267-4200
More information about the Python-list
mailing list