title: Passing a file address with spaces to CMD
body: <p>I have the following code, which works fine as long as my address does not have any spaces in the folder names. I know spaces in oFileLocation is what is causing me issues, and I know I need to wrap it in double quotes, but no matter how I escape the characters, CMD.EXE tells me that "'/c' is not recognized as an internal or external command...." How do I need to alter strCmdText to handle spaces in oFileLocation?</p>
  
  <pre><code>oFileLocation = \\data\shares\folder1\file.iso
  strCmdText = "/c \"C:\\Program Files\\7-Zip\\7z.exe\" x -tiso -y " + oFileLocation + 
      " -o" + oDownloadDirectory + "\\" + oFileNameReplaced;
  ProcessStartInfo startInfo = new ProcessStartInfo("CMD.exe");
  startInfo.WindowStyle = ProcessWindowStyle.Maximized;
  startInfo.Arguments = strCmdText;
  Process.Start(startInfo).WaitForExit();
  </code></pre>