Sub KillAllProcessByName(ByVal NameOfProcess As String)
Dim ProcessArray() As Process = Process.GetProcessesByName(NameOfProcess)
For x As Integer = 0 To ProcessArray.Length - 1
ProcessArray(x).Kill()
Next
End Sub
how I can kill a process using VB 2005 such as killink YPager.exe plz write full code that works
how I can kill a process using VB 2005 such as killink YPager.exe plz write full code that works
j.cran
Private
Sub KillAllProcessByName(ByVal NameOfProcess As String) Dim ProcessArray() As Process = Process.GetProcessesByName(NameOfProcess) For x As Integer = 0 To ProcessArray.Length - 1 ProcessArray(x).Kill() Next End Sub