Friendly names doesn't contain file extensions. I would rather use a For-Each loop:
Code:
For Each p As Process In Process.GetProcessesByName("notepad")
Try
If p.CloseMainWindow() Then
MessageBox.Show("nice process close")
Else
p.Kill()
MessageBox.Show("oops, had to kill it :(")
End If
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Next
Remember to use Code blocks when posting code, it makes the post readable. It is just one click of the Code button in message editor.