CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    11

    get result from .exe

    Please someone to help me.How can i execute console .exe and get the result in string object



  2. #2
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    265

    Re: get result from .exe

    Look into using the static call System.Diagnostics.Process.Start to run the process. This call will return a Process object, from which you can get at the StandardOutput property. Then read your string from this stream.

    "My own view on religion is that of Lucretius. I regard it as a disease born of fear and as a source of untold misery to the human race. I cannot, however, deny that it has made some contributions to civilization. It helped in early days to fix the calendar, and it caused Egyptian priests to chronicle eclipses with such care that in time they became able to predict them. These two services I am prepared to acknowledge, but I do not know of any others." -- Bertrand Russell (From his essay Has Religion Made Useful Contributions to Civilization?, first published in 1930)

  3. #3
    Join Date
    Aug 2001
    Location
    Norway
    Posts
    115

    Re: get result from .exe

    ...or you could raise events and fetch them in another application.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured