title: Start a process with a command line parameter of another executable
body: <p>I'm trying to pass an .exe to another through C# code.</p>
  
  <p>Here's my code so far:</p>
  
  <pre><code>string ex1 = System.Windows.Forms.Application.StartupPath.ToString() + "\\dev\\psm.exe";
  string ex2 = System.Windows.Forms.Application.StartupPath.ToString() + "\\dev\\Application\\app.exe";
  
  ProcessStartInfo startInfo = new ProcessStartInfo();
  startInfo.CreateNoWindow = false;
  startInfo.UseShellExecute = false;
  startInfo.FileName = ex1;
  startInfo.WindowStyle = ProcessWindowStyle.Normal;
  startInfo.Arguments = ex2;
  
  try
  {
      Process.Start(startInfo);
  }
  catch
  {
  }
  </code></pre>
  
  <p>Which argument would work as dragging a file onto the application?
   <br/> <strong>Details:</strong>  <br/>
  When you run psm.exe normally, it prompts for file name and directory. <br/>
  <img src="https://i.stack.imgur.com/G80Up.png" alt="Running psm.exe"></p>
  
  <p><br/>
  However, when you drag an approved app on psm.exe,
  <img src="https://i.stack.imgur.com/l41xH.png" alt="Running file with psm.exe"> <br/>it loads the app automatically. <img src="https://i.stack.imgur.com/50rzg.png" alt="Running app"></p>
  
  <p><br/> <br/>
  How can this be done with C#?</p>