title: cmd batch to listen to output of console application
body: <p>I'm starting a Console Application from a batch file as a <code>background</code>  <code>Startup Task</code> in a Cloud Project.</p>
  
  <p>i have a batch file that will start the application and print messages to log file:</p>
  
  <pre><code>   $logfile = %LOGFOLDER%/StartupLogFile.txt
     "Starting console application" &gt;&gt; $logfile // print message to txt file 
    `MyConsoleApplication.exe -parameter1 value ...-parameterN valueN 
  </code></pre>
  
  <p>The Conosole Application may file due to incorrect parameters and i would like to print that to the logfile. 
  Is there anyway to "listen" to the application output and print it to log? </p>
  
  <p>Thanks</p>
  
  <p>Dan</p>