title: How to pass multiple command line arguments in a Program called in VB.net
body: <hr>
  
  <pre><code>Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  
  Dim p As New ProcessStartInfo
  p.FileName = "D:\c\File_copy_program.exe"
  p.Arguments = "D:\c\File_copy_program.exe" &amp; "D:\PE.nrg" &amp; "D:\c\1.nrg"
  p.WindowStyle = ProcessWindowStyle.Hidden
  Process.Start(p)
  
  End Sub
  </code></pre>
  
  <hr>
  
  <p>As you may see in the Above Code i am trying to run a program called File_copy_program.exe, which i created using C++. Now this program takes 3 Arguments in Main (i.e. program name, source file, target file).</p>
  
  <p>Now the line:
  p.Arguments = "D:\c\File_copy_program.exe" &amp; "D:\PE.nrg" &amp; "D:\c\1.nrg"</p>
  
  <p>is not working. And my program says invalid number of arguments passed (since i have a condition in it to make sure the program aborts if number of arguments are not equal to 3).</p>