Wrox Programmer Forums
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2007, 12:29 AM
Registered User
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Redirect Console Output(VB.Net)

Hi all,
I found http://dotnet.mvps.org/dotnet/sample...ectConsole.zip one to read the console output by line by line.But I am unable to detect the finishing of the console output.How can I detect that the console application is finished

Dana
 
Old September 9th, 2007, 10:30 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Unfortunately all the comments in the code are not in English so I couldn't quite tell what was intended. My limited experience has been that the calls to the output stream will more or less tell you whats happening. A call to ReadToEnd will block until the process is complete. A call to ReadLine will block until the next line comes in. If that call returns NULL, the process is done. That has worked for me at least.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
redirect:write printing xml header in output csv jon.london XSLT 4 October 1st, 2007 05:47 AM
httpresponse in console application in VB.NET 1.1 bhavna VS.NET 2002/2003 1 March 21st, 2007 06:30 AM
Executing vb.net console app via report services rickyc1 BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 2 March 31st, 2006 03:56 AM
Problem with First.cs output via Console.WriteLine patrick764 C# 1 November 7th, 2005 03:17 PM
Console output rewriting holdmykidney Java GUI 3 November 26th, 2004 12:16 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.