title: How to parse TextBox to arguments to run a exe
body: <p>I need to parse login and password from textbox to arguments to run a exe</p>
  
  <pre><code> private void button1_Click(object sender, EventArgs e)
      {
  
  
          string username = textBox1.Text;
          string password = textBox2.Text;
  
          Process p = new Process();
          p.StartInfo.FileName = "Main.exe";
          p.StartInfo.Arguments = "-IFZUpdatedOk_K0 -gna -login @username -pwd  @password";
          p.Start();
          p.WaitForExit();
  
  
       //   System.Diagnostics.Process.Start("Main.exe", " -IFZUpdatedOk_K0 -gna -login email@email.com -pwd mypassword");
      }``
  </code></pre>