title: How to Know the Process Name at Process Exited Event
body: <p>I run multiple exe with different names by using Process.start() and enables Raisingevents to True. To check the status of Process, I intimated User at Process Exited event and show a message to user. </p>
  
  <p>But the problem is I want to show the particular Exe Name to User at that Exit event. My code for For process Start is: </p>
  
  <pre><code>Private Sub StartExe()
  Private psi As ProcessStartInfo
  Private cmd As Process
  Dim filePath As String = "vision.exe"
  psi = New ProcessStartInfo(filePath)
  Dim systemencoding As System.Text.Encoding = _
          System.Text.Encoding.GetEncoding(Globalization.CultureInfo.CurrentUICulture.TextInfo.OEMCodePage)
      With psi
          .Arguments = "Some Input String"
          .UseShellExecute = False   
          .RedirectStandardError = True
          .RedirectStandardOutput = True
          .RedirectStandardInput = True
          .CreateNoWindow = False
          .StandardOutputEncoding = systemencoding  
          .StandardErrorEncoding = systemencoding
      End With
      cmd = New Process With {.StartInfo = psi, .EnableRaisingEvents = True}
      AddHandler cmd.ErrorDataReceived, AddressOf Async_Data_Received
      AddHandler cmd.OutputDataReceived, AddressOf Async_Data_Received
      AddHandler cmd.Exited, AddressOf processExited
      cmd.Start()
      cmd.BeginOutputReadLine()
      cmd.BeginErrorReadLine()
    End Sub
    'For Receiving the Output of Exe, I used a TextBox to view
     Private Sub Async_Data_Received(ByVal sender As Object, ByVal e As   DataReceivedEventArgs)
    Me.Invoke(New InvokeWithString(AddressOf Sync_Output1), e.Data)
    End Sub
     Private Sub Sync_Output1(ByVal text As String)
      txtLog.AppendText(text &amp; Environment.NewLine)
    End Sub
   'At the Exit event, I inform the user that an Exe exited due to some reason etc.
    Private Sub processExited(ByVal sender As Object, ByVal e As EventArgs)
       Me.BeginInvoke(New Action(Function()
       MessageBox.Show("The Stream for " &amp;Particular Exe&amp;   "is Exited.", "", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
  
       End Function))
       End Sub
  </code></pre>
  
  <p>At the Process Exited Event, how can I show name of that particular Exe which fired that event. Like in that particular code, I started an "vision.exe", So I want to inform the user that vision.exe is terminated due to some reason etc. </p>