Capturing the Console Output in VB .Net


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Capturing the Console Output in VB .Net

  1. #1
    Join Date
    Jun 2005
    Posts
    1

    Capturing the Console Output in VB .Net

    Hi Friends,

    I am new to VB .Net. I want to capture the console output. Can anybody tell me how to do it.

    Actully in my applcation i am calling some Compaq Visual fortran Exe which generates some messages while execution and a output file. I want to capture the messages which get printed on console and disaply then in a textbox.

    I am calling the Fortran exe using the SHELL command.

    Thanks,
    Satya

  2. #2
    Join Date
    Nov 2004
    Location
    Oslo
    Posts
    73
    Try Console.SetOut.
    This lets you specify a TextWriter. Not sure if there is an easy way to read from a writer... but maybe you can find a workaround e.g. writing to a file and then read it. Or there might be an easier way =)
    oes

  3. #3
    Join Date
    Apr 2005
    Posts
    39

    pipe

    Hi! is the fortran.exe is a win32 exe you can use a pipe, with the PIPE you can get all messages, and send this to RichTextEdit


    or

    When Use the ShellExecute, write a .TXT file, later read, but you need insert a sleep, the OS sometimes is slow and the program is slow for create the .txt.


    Sorry my english
    "Quid quid agis prudenter agas et respice finem"
    (Hagas lo que hagas, act˙a inteligentemente y considerando el fin)
    MyNeoReport - The "FREE" Report Generator for .NET
    http://myneoreport.sourceforge.net/
    http://www.frappr.com/vbcity

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center