title: Running a console app with arguments from C# - GUI Hookup Advice
body: <p>(Warning: This is a C# n00b question! Trying to learn a bit of C# while making things easier for a console app I run frequently.)  </p>
  
  <p>I'm trying to run a console application (<code>consoleapp.exe</code>) without having to manually type in the arguments each time - The command is typically of this form: </p>
  
  <p><code>C:/consoleapp.exe --username (uname) --password (pass) --inputfile "c:/pathtofile/filename.xml"</code></p>
  
  <p>Using C# I might even be able to load up a Windows explorer file prompt, instead of having to manually type in the file path each time. How would I go about doing this?</p>
  
  <p>I tried the <a href="http://www.jonasjohn.de/snippets/csharp/run-console-app-without-dos-box.htm" rel="nofollow">snippet at this link</a>. I got it to work by just replacing the <code>ApplicationPath</code> with the path to my cojnsole app, and <code>ApplicationArguments</code> with the arguments shown in the format above, except <i>I'm not sure how to hook up the parameters with the VC# GUI tools, or to relay the output I get from the original console app back.</i></p>