title: Space in Directory Parameter of svcutil.exe
body: <p>I'm attempting to download metadata for a WCF service using svcutil but I'm running into issues with the /directory:&lt;> parameter. The directory I want to save to has a space in it:</p>
  
  <blockquote>
    <p>C:\Service References\Logging</p>
  </blockquote>
  
  <p>so when I execute /t:metadata I receive the following error:</p>
  
  <blockquote>
    <p>Error: The directory 'C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\References\Logging' could not be found. Verify that the directory exists and that you have the appropriate permissions to read it.</p>
  </blockquote>
  
  <p>It looks to me like the space in "Service References" is causing the issue. From my understanding of command shell (which is very little) spaces act as delimiters for an executable. So I tried escaping the space with a carrot </p>
  
  <blockquote>
    <p>Service^ References </p>
  </blockquote>
  
  <p>and surrounding the path in double quotes </p>
  
  <blockquote>
    <p>"C:\Service References\Logging"</p>
  </blockquote>
  
  <p>but neither of those seem to be working, as the /directory: parameter doesn't recognize them as valid characters in the value. I haven't been able to find any direction in regards to this and svcutil, so I'm at a loss right now.</p>
  
  <p>I could download the files to a temp folder and then move them, but I would prefer not to take that approach.</p>
  
  <p>I would appreciate any direction that could be given on trying to resolve this.
  Thanks in advance.</p>
  
  <p><strong>-- EDIT --</strong>
  this is the full command that I'm trying to run. if you try it yourself, you'll have to add you're own WCF reference as this one is on an internal ip address</p>
  
  <blockquote>
    <p>svcutil /t:metadata <a href="http://dev.taskservices.noelnet.com/LoggingService/LoggingService.svc" rel="nofollow">http://dev.taskservices.noelnet.com/LoggingService/LoggingService.svc</a> /d:C:\Service References\Logging\</p>
  </blockquote>