Capturing the Console Output in VB .Net
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.
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 =)
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
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
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center