H
Harald Fichtner
Hello,
I tried the following code with ASP 1.1 to get the StandardOutput, but it
didn't work.
Who knows what's wrong?
Try
Dim file As String = Server.MapPath("test.exe")
Dim myProcess As New Process
myProcess.StartInfo.FileName = file
myProcess.StartInfo.CreateNoWindow = True
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.RedirectStandardOutput = True
myProcess.Start()
Response.Write(myProcess.StandardOutput.ReadToEnd.ToString)
Catch ex As Exception
Response.Write(ex.Message)
End Try
Thanks for any help
Harald
I tried the following code with ASP 1.1 to get the StandardOutput, but it
didn't work.
Who knows what's wrong?
Try
Dim file As String = Server.MapPath("test.exe")
Dim myProcess As New Process
myProcess.StartInfo.FileName = file
myProcess.StartInfo.CreateNoWindow = True
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.RedirectStandardOutput = True
myProcess.Start()
Response.Write(myProcess.StandardOutput.ReadToEnd.ToString)
Catch ex As Exception
Response.Write(ex.Message)
End Try
Thanks for any help
Harald