-
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
-
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
-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks