VB Code:
Dim oProcess As Process For Each oProcess In System.Diagnostics.Process.GetProcesses() If oProcess.ProcessName.ToString = "YourDesiredExe" Then oProcess.Kill() End If Next
My previous code will get the process you desire and does not have to be created by you or your code.






Reply With Quote