vb.net Code:
  1. Dim p As Process() = Process.GetProcessesByName("notepad")
  2.         If p.Length = 0 Then
  3.             Process.Start("notepad.exe")
  4.         End If