ASP 1.1 - StandardOutput from console application
- From: "Harald Fichtner" <harald_fichtner@xxxxxxxxxxx>
- Date: Fri, 6 Oct 2006 22:06:20 +0200
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
.
- Follow-Ups:
- Re: ASP 1.1 - StandardOutput from console application
- From: Cowboy \(Gregory A. Beamer\)
- Re: ASP 1.1 - StandardOutput from console application
- Prev by Date: Re: Server Error: Object reference not set
- Next by Date: Re: ASP 1.1 - StandardOutput from console application
- Previous by thread: Re: Using a connection pool for SQL Server ASP.NET 1.1 Session managem
- Next by thread: Re: ASP 1.1 - StandardOutput from console application
- Index(es):
Relevant Pages
|