You can run the exe in the shell, but I'm not sure about the cmd window. I didnt need it, but thi scode will scrape the hidden cmd box for the shel output, in whichyou can regex the return values.
Private Function Shell_Exceute_FLV(ByVal Parameters_FFMpeg As String) As String
Dim Context As HttpContext = HttpContext.Current
Dim SB\_FFMpeg As StringBuilder = New StringBuilder
Try
Dim Results As String = Nothing
Dim ffmpeg As New Process()
Dim ffmpeg\_StartInfo As New ProcessStartInfo(Path\_FFMPEG, Parameters\_FFMpeg)
ffmpeg\_StartInfo.UseShellExecute = False
ffmpeg\_StartInfo.RedirectStandardError = True
ffmpeg\_StartInfo.RedirectStandardOutput = True
ffmpeg.StartInfo = ffmpeg\_StartInfo
ffmpeg.Start()
Dim ffmpeg\_StreamReader As IO.StreamReader = ffmpeg.StandardError
SB\_FFMpeg = New StringBuilder()
SB\_FFMpeg.Append(ffmpeg\_StreamReader.ReadToEnd().ToString())
Do While Not ffmpeg.WaitForExit(1000)
SB\_FFMpeg.Append(ffmpeg\_StreamReader.ReadToEnd().ToString())
Loop
If ffmpeg.ExitCode = 0 Then
ffmpeg.Close()
If Not ffmpeg\_StreamReader Is Nothing Then
ffmpeg\_StreamReader.Close()
End If
Else
ffmpeg.Close()
If Not ffmpeg\_StreamReader Is Nothing Then
ffmpeg\_StreamReader.Close()
End If
End If
ffmpeg.Close()
ffmpeg.Dispose()
ffmpeg = Nothing
Catch ex As Exception
End Try
Return SB\_FFMpeg.ToString
End Function