Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim psi As New System.Diagnostics.ProcessStartInfo("C:\Program Files\Foxit Software\Foxit Reader\Foxit Reader.exe")
psi.RedirectStandardOutput = True
psi.WindowStyle = ProcessWindowStyle.Hidden
psi.UseShellExecute = False
Dim uls As System.Diagnostics.Process
uls = System.Diagnostics.Process.Start(psi)
If uls.HasExited Then
MessageBox.Show("No")
Else
MessageBox.Show("Yes")
End If
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Process1.Start()
Process1.WaitForExit()
MessageBox.Show("yes")
End Sub