Console.WriteLine() problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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?

.



Relevant Pages

  • Re: Anyone remember DOS?
    ... Trying to see if anyone knows the command I'm looking for without ... and *) can be used to specify groups of files. ... When you use the DIR command, it will display all files that match the ... To display only files with the .TXT filename extension on the current ...
    (rec.music.artists.springsteen)
  • Re: using the command prompt
    ... Is there a tutorial on using the command prompt to complete ... That will display a list of all ... CD Change Directory - move to a specific Folder. ... DSACLs Active Directory ACLs ...
    (microsoft.public.windowsxp.general)
  • Re: Display problems in Vista
    ... Very small overhead. ... the command packet needs to be transfered. ... have to display a line that is x pixels wide at any zoom level. ...
    (comp.graphics.api.opengl)
  • Re: Read Only / Thanks Keith.
    ... >'attrib' without any parameters will display a directory ... >The full syntax of the command follows (pasted from Help ... Used without parameters, attrib displays ... xcopy command uses archive attributes. ...
    (microsoft.public.windowsxp.general)
  • Re: Need WMI script
    ... Dim strDomainName, strNodeText, strXmlBuilder ... ' Retrieve values and display. ... However, if you use the cscript host, ... you can use a command similar to below at a command prompt: ...
    (microsoft.public.windows.server.scripting)