title: Pass path with space as parameter of executable via Process.Start
body: <p>I have path with backslashes and space that I need to send as parameter to regedit.exe:</p>
  
  <pre><code>\\folder1\folder2\folder three\file.reg
  </code></pre>
  
  <p>Based on my knowledge using <code>@</code> in front of string should allow back slashes to be specified directly (without escaping). Here is my full code that I am trying to execute it on:</p>
  
  <pre><code>string path = @"\\folder1\folder2\folder three\file.reg"
  Process regeditProcess = Process.Start("regedit.exe", file);
  </code></pre>
  
  <p>When I tried running the program, it gives me an error from regedit's output  saying: </p>
  
  <blockquote>
    <p>Cannot import \folder1\folder2\folder: Error opening the file. There may be a disk or file system error</p>
  </blockquote>
  
  <p>Since error report backslashes correctly I am guessing the compiler or regedit does not read anything past the whitespace after "folder"</p>