ASP 1.1 - StandardOutput from console application

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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


.



Relevant Pages

  • Re: Retrieving "Next" file in a folder
    ... Folder/Directory. ... Private Sub IterateFolder() ... Dim File As String ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Bind ArrayList to DataList
    ... You are adding the string to the array. ... > Dim File As FileInfo ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: File finden
    ... Dim File As String ... Private Sub AddFile(FCollection As Collection, Fle As String) ...
    (microsoft.public.de.vb)
  • Re: Is this possible
    ... I want to search the My Music Folder to obtain information about the ... single artist for all the CD's by that artists. ... What that requires is a string with 3 variables one for each ... Dim file As String ...
    (microsoft.public.vb.syntax)
  • Re: VBA newbie question
    ... Dim fso ... Dim file As String ... the file w/Path ...
    (microsoft.public.excel.programming)