Console.WriteLine() problem
- From: "Zorquel" <Zorquel@xxxxxxxxx>
- Date: 4 Oct 2006 13:51:57 -0700
I have an application that I want to accept command line arguments and
if there are no command line arguments then go ahead and display the
form and run it normally. However, if I use the command line arguments
and run it from a command prompt, when I use Console.WriteLine (or
Console.Out.WriteLine) nothing is getting displayed to the screen. I'm
wanting to use the command line arguments so that I can have it call
another application from a separate process. (I've tried using a
separate thread, however the external application sucks all the
resources from my process and the UI hangs). Anyone know how to reset
the Console.Out and Console.Error back to the original values so that
when I run it from a command prompt it will display the information at
the command prompt?
.
- Prev by Date: Re: C# passing array of data to Excel
- Next by Date: Re: form designer
- Previous by thread: Re: C# passing array of data to Excel
- Next by thread: Why instantiate a class, all of whose methods, properties, and events are static?
- Index(es):
Relevant Pages
|