title: C# Format String with double quotes around directories with spaces
body: <p>I am trying to use a String.Format to create the following string</p>
  
  <p>2MSFX.exe "C:\Users\Avidan\Documents\Visual Studio 2010\Projects\DefferedRenderer\DummyGame\DummyGameContent\Shaders\Clear.fx" "C:\Users\Avidan\Documents\Visual Studio 2010\Projects\DefferedRenderer\DummyGame\DummyGameContent\Shaders\Clear.mxfb"</p>
  
  <p>so i am trying to use String.Format, but i just can't seen to get my head around it for some reason :|</p>
  
  <p>The code is (where last 2 params are String.Empty):</p>
  
  <pre><code> String outputFile = Path.Combine(destDir, Path.ChangeExtension(Path.GetFileName(fxFile), "mgxf"));
   String command = String.Format("\"{0}\" \"{1}\" \"{2}\" \"{3}\"",  Path.GetFullPath(fxFile),  Path.GetFullPath(outputFile), DX11Support, DebugSupport);
  
                  var proc = new Process
                  {
                      StartInfo = new ProcessStartInfo
                      {
                          FileName = MGFXApp,
                          Arguments = command,
                          UseShellExecute = false,
                          RedirectStandardOutput = true,
                          CreateNoWindow = true
                      }
                  };
  </code></pre>
  
  <p>But that appears to be giving me
  \"C:\Users\Avidan\Documents\Visual Studio 2010\Projects\DefferedRenderer\DummyGame\DummyGameContent\Shaders\ClearGBuffer.fx\" \"C:\Users\Avidan\Documents\Visual Studio 2010\Projects\DefferedRenderer\DummyGame\DummyGameContent\Shaders\MGFX\ClearGBuffer.mgxf\" \"\" \"\"</p>
  
  <p>If i use the verbatim string i can't get it to create the string i want.</p>
  
  <p>Any Ideas?
  Thanks.</p>