I used
Code Converter[
^] to convert this C# code
foreach (Process process in Process.GetProcessesByName(YourProcessNameHere.exe))
{
if (process.Id != current.Id)
{
process.Kill();
}
}
to VB, so here is the VB version
For Each process__1 As Process In Process.GetProcessesByName("YourProcessNameHere.exe")
If process__1.Id <> current.Id Then
process__1.Kill()
End If
Next
Where
YourProcessNameHere.exe
is to be replaced with the applications you need to kill, ex:
KC9.exe
.