Have a Delphi GUI application. Application start in GUI mode if a paramcount=0 and in Console mode else.
If ParamCount>0 Then
If application start wth some command line parameter from batch file or from Far or from DOS command prompt it's open a new console. How check that the parent process already have console and attach to them for outputing text?