title: C# - passing arguments with space in between them to a process
body: <p>I'm trying to pass an argument to a process a folder with space in its name. It doesn't recognize the folder. How can i do that?</p>
  
  <pre><code>string my_arg = @"C:\\program files\\my folder with spaces";
  
  ProcessStartInfo proc = new ProcessStartInfo();
  
  proc.FileName = @"C:\batches\my_batch.bat";
  
  proc.Arguments = @my_arg ;
  
  Process.Start(proc);
  </code></pre>
  
  <p>the process wont start - it does work if i use a folder with no spaces in the name.
  Thank you!</p>