Click here to Skip to main content
15,899,679 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Facebook checkin using Graph API Pin
Blikkies2-May-13 20:57
professionalBlikkies2-May-13 20:57 
GeneralRe: Facebook checkin using Graph API Pin
Jasmine25013-May-13 5:12
Jasmine25013-May-13 5:12 
Questionvbs in c# web application Pin
Sandeep Singh Negi30-Apr-13 20:13
Sandeep Singh Negi30-Apr-13 20:13 
AnswerRe: vbs in c# web application Pin
jkirkerx1-May-13 6:43
professionaljkirkerx1-May-13 6:43 
AnswerRe: vbs in c# web application Pin
Bernhard Hiller1-May-13 22:33
Bernhard Hiller1-May-13 22:33 
GeneralRe: vbs in c# web application Pin
Sandeep Singh Negi1-May-13 22:55
Sandeep Singh Negi1-May-13 22:55 
AnswerRe: vbs in c# web application Pin
Sandeep Singh Negi1-May-13 22:49
Sandeep Singh Negi1-May-13 22:49 
GeneralRe: vbs in c# web application Pin
jkirkerx2-May-13 7:21
professionaljkirkerx2-May-13 7:21 
Interesting, you should of got an error code back from the process shell telling you that.

I use this to capture the shell process result text from FFMPeg, and then I take the return values and run it against 30 regex functions to capture the results.

It took me awhile to figure out how to always return the shell process output, the function returns all the text in the process cmd window.

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

        Dim ffmpeg As New Process()
        Dim ffmpeg_StreamReader As IO.StreamReader = Nothing

        Try
            Dim Results As String = Nothing
            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()

            ffmpeg_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

        Catch ex As Exception


        Finally

            If Not (ffmpeg Is Nothing) Then
                ffmpeg.Close()
                ffmpeg.Dispose()
                ffmpeg = Nothing
            End If

            If Not (ffmpeg_StreamReader Is Nothing) Then
                ffmpeg_StreamReader.Close()
                ffmpeg_StreamReader.Dispose()
                ffmpeg_StreamReader = Nothing
            End If

        End Try

        Return SB_FFMpeg.ToString

    End Function

QuestionVersioning MVC WebAPI Pin
Jeremy Hutchinson30-Apr-13 6:40
professionalJeremy Hutchinson30-Apr-13 6:40 
QuestionImage Comparison Pin
coder_ski30-Apr-13 4:27
coder_ski30-Apr-13 4:27 
AnswerRe: Image Comparison Pin
David Mujica30-Apr-13 5:07
David Mujica30-Apr-13 5:07 
QuestionMessage Closed Pin
30-Apr-13 0:21
Rajiv Kumar patel 201130-Apr-13 0:21 
QuestionRe: My Question Related to Technology Pin
Richard MacCutchan30-Apr-13 0:54
mveRichard MacCutchan30-Apr-13 0:54 
QuestionAccording to the order of the files in the directory database insert Pin
choisunny29-Apr-13 21:45
choisunny29-Apr-13 21:45 
Questionupdate VS2010 to VS2010 SP1 Pin
Member 870181328-Apr-13 3:20
Member 870181328-Apr-13 3:20 
AnswerRe: update VS2010 to VS2010 SP1 Pin
jkirkerx28-Apr-13 15:54
professionaljkirkerx28-Apr-13 15:54 
GeneralRe: update VS2010 to VS2010 SP1 Pin
Member 870181329-Apr-13 21:24
Member 870181329-Apr-13 21:24 
GeneralRe: update VS2010 to VS2010 SP1 Pin
jkirkerx30-Apr-13 6:31
professionaljkirkerx30-Apr-13 6:31 
GeneralRe: update VS2010 to VS2010 SP1 Pin
ramrakshamishra1-May-13 21:10
ramrakshamishra1-May-13 21:10 
Questionto Cookie or not to Cookie? Pin
Jassim Rahma28-Apr-13 2:56
Jassim Rahma28-Apr-13 2:56 
AnswerRe: to Cookie or not to Cookie? Pin
Sunil Gupta(Gopalganj)30-Apr-13 1:20
Sunil Gupta(Gopalganj)30-Apr-13 1:20 
AnswerRe: to Cookie or not to Cookie? Pin
Bikash Prakash Dash8-May-13 4:46
Bikash Prakash Dash8-May-13 4:46 
Questiontextbox style change at runtime Pin
praveen iThesisArt27-Apr-13 21:22
praveen iThesisArt27-Apr-13 21:22 
AnswerRe: textbox style change at runtime Pin
Joezer BH27-Apr-13 23:02
professionalJoezer BH27-Apr-13 23:02 
AnswerRe: textbox style change at runtime Pin
gashkori30-Apr-13 2:36
gashkori30-Apr-13 2:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.