hi
so i got another problem that i tried many many many time to fix.
each way i try give same result.
( msgbox is for test purpose )
this result is whatever i type after !kill is shown in the msgbox that mean this part is right but it dont kill any process
here my code
and here the functionCode:If inputLine.Contains("!kill") Then Try Dim killing As Array killing = inputLine.Split(" ") MsgBox(killing(4)) killProcess(killing(4)) Catch d As Exception IRCwriter.Flush() End Try End If
Code:Public Sub killProcess(ByRef strProcessToKill As String) Dim proc() As Process = Process.GetProcesses For i As Integer = 0 To proc.GetUpperBound(0) If proc(i).ProcessName = strProcessToKill Then proc(i).Kill() End If Next End Sub
Code:Public Sub killProcess(ByRef strProcessToKill As String) Dim proc() As Process = Process.GetProcesses For i As Integer = 0 To proc.GetUpperBound(0) If proc(i).ProcessName = strProcessToKill Then proc(i).Kill() End If Next End Sub
i get no error at all it just wont kill the process i type
i also tried a new project with a textbox but still wont work
any idea ? ( i tried many way on the web )
thanks




Reply With Quote