I have the following code
If Process.GetProcessesByName("Testing").Length = 0 Then Text = "RuneSafe" Else Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName(value = instance.Items) For Each p As Process In pProcess p.Kill() Next MsgBox("A threat was detected, and has been terminated.") End If
Which checks to see if there is a application running called "Testing.exe". Now, I want to make it so instead of checking for applications called "Testing.exe" I want it to check for applications that are in the listbox.. This means every item, not just the first one - Anyone know how to accomplish this? I tried Listbox1.items.toString but that didn't work.
+REP if you help.
Thanks, Robert.