Click here to Skip to main content
15,888,271 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: call exe file in vb.net Pin
Pradeep Shukla7-Sep-11 4:07
professionalPradeep Shukla7-Sep-11 4:07 
GeneralRe: call exe file in vb.net Pin
Pete O'Hanlon7-Sep-11 4:32
mvePete O'Hanlon7-Sep-11 4:32 
GeneralRe: call exe file in vb.net Pin
Pradeep Shukla7-Sep-11 4:37
professionalPradeep Shukla7-Sep-11 4:37 
GeneralRe: call exe file in vb.net Pin
Pete O'Hanlon7-Sep-11 4:55
mvePete O'Hanlon7-Sep-11 4:55 
GeneralRe: call exe file in vb.net Pin
PIEBALDconsult7-Sep-11 14:49
mvePIEBALDconsult7-Sep-11 14:49 
AnswerRe: call exe file in vb.net Pin
PIEBALDconsult7-Sep-11 3:02
mvePIEBALDconsult7-Sep-11 3:02 
AnswerRe: call exe file in vb.net Pin
Rakesh Meel10-Sep-11 0:31
professionalRakesh Meel10-Sep-11 0:31 
AnswerRe: call exe file in vb.net Pin
jkirkerx27-Sep-11 17:03
professionaljkirkerx27-Sep-11 17:03 
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.

VB
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

QuestionEnterprise Library caching problem Pin
maryam.saboor5-Sep-11 18:23
professionalmaryam.saboor5-Sep-11 18:23 
AnswerRe: Enterprise Library caching problem Pin
Mehdi Gholam6-Sep-11 17:30
Mehdi Gholam6-Sep-11 17:30 
AnswerRe: Enterprise Library caching problem Pin
Pradeep Shukla6-Sep-11 17:52
professionalPradeep Shukla6-Sep-11 17:52 
QuestionADO.NET Entity Framework and persistence encapsulation Pin
oraclepilot5-Sep-11 10:29
oraclepilot5-Sep-11 10:29 
QuestionForward Email by programattically using asp.net +C# Pin
Alok Kumar Sharma4-Sep-11 8:18
Alok Kumar Sharma4-Sep-11 8:18 
AnswerRe: Forward Email by programattically using asp.net +C# Pin
Wendelius4-Sep-11 10:13
mentorWendelius4-Sep-11 10:13 
QuestionVS 2008 now always throws a XML schema compile warning. Pin
Gregory Gadow1-Sep-11 7:07
Gregory Gadow1-Sep-11 7:07 
AnswerRe: VS 2008 now always throws a XML schema compile warning. Pin
Bert Mitton2-Sep-11 7:45
professionalBert Mitton2-Sep-11 7:45 
QuestionDeadlock issue in batch processing Pin
Dimpal1701-Sep-11 4:38
Dimpal1701-Sep-11 4:38 
AnswerRe: Deadlock issue in batch processing Pin
Wendelius3-Sep-11 4:35
mentorWendelius3-Sep-11 4:35 
AnswerRe: Deadlock issue in batch processing Pin
jschell3-Sep-11 10:24
jschell3-Sep-11 10:24 
QuestionSaving FlowDocument to XPS causes viewer to go blank Pin
Geron31-Aug-11 22:17
Geron31-Aug-11 22:17 
AnswerRe: Saving FlowDocument to XPS causes viewer to go blank [modified] Pin
Pradeep Shukla6-Sep-11 17:46
professionalPradeep Shukla6-Sep-11 17:46 
QuestionObject serialization problem Pin
columbos1492730-Aug-11 23:58
columbos1492730-Aug-11 23:58 
AnswerRe: Object serialization problem Pin
Richard Andrew x6431-Aug-11 6:54
professionalRichard Andrew x6431-Aug-11 6:54 
AnswerRe: Object serialization problem Pin
Columbus-MCSD4-Sep-11 17:53
Columbus-MCSD4-Sep-11 17:53 
QuestionI am getting this kind of error,pls help Pin
jitendra rajbher30-Aug-11 23:43
jitendra rajbher30-Aug-11 23:43 

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.