February 5th, 2005, 05:35 PM
I'm currently trying to create a virus (ad-aware, spyware, trojans, etc.) remover. I already know how to remove the files that are listed in a text document (defs.dat). I'm pretty sure I can remove their registry values if they have any. My only problem is knowing how to end their process if they are running. Does Python have a way to end a certain process(s)?
February 6th, 2005, 04:49 AM
There is an os.kill function that will do exactly what you want, but it is only implemented on UNIX systems. I presume from your previous posts that you are Windows only.
On Windows with the Win32 extensions installed you can use the win32process.ExitProcess or win32process.TerminateProcess functions, which calls the Windows function of the same names. The doc for the functions can be found on MSDN here and here.
Dave - The Developers' Coach
Last edited by DevCoach; February 6th, 2005 at 04:55 AM.