Okay, So i check if theres any .exe files in a folder and if there is i want to kill them, Here's the part were i try to kill any process(s)
Dim srp = sFile.Replace(".exe", "")
Dim process1 As Process
For Each process1 In Process.GetProcesses
If (process1.ProcessName = srp) Then
Dim killa As Process = process1
killa.Kill()
End If
Next
I don't get any error's but it doesn't seem to work, any help would be appreciated and don't laugh it's my first day![Stick out tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Dim srp = sFile.Replace(".exe", "")
Dim process1 As Process
For Each process1 In Process.GetProcesses
If (process1.ProcessName = srp) Then
Dim killa As Process = process1
killa.Kill()
End If
Next
I don't get any error's but it doesn't seem to work, any help would be appreciated and don't laugh it's my first day