Hi i was wondering if it is possible to shut a process down? if so could you please show me how? thanks for your time and hope you could help with my antivirus project for school:P
Printable View
Hi i was wondering if it is possible to shut a process down? if so could you please show me how? thanks for your time and hope you could help with my antivirus project for school:P
I was also wondering if it is possible to search for a certain process to see if its in memory.
If you do an advanced Search for kill process you'll get a number of hits and this is one of them.
Here's a way:VB Code:
Option Explicit Private Sub Command1_Click() 'terminates Notepad.exe TerminateProcess ("Notepad.exe") End Sub Private Sub TerminateProcess(app_exe As String) Dim Process As Object For Each Process In GetObject("winmgmts:").ExecQuery("Select Name from Win32_Process Where Name = '" & app_exe & "'") Process.Terminate Next End Sub
thanks it worked out good!
Np! :wave: