title: How to use folders with spaces in SAS x "copy ..."?
body: <p>In sas I need to copye file from a place to another but that file is located in a folder with spaces wich poses problems.</p>
  
  <p>Here is what I want to do:</p>
  
  <pre><code>x "copy \\aaa\b c d\eee.pdf \\fff\ggg.pdf";
  </code></pre>
  
  <p>because of the spaces between b c and d it doesn't work.</p>
  
  <p>I know I can do</p>
  
  <pre><code>x 'copy \\aaa\"b c d"\eee.pdf \\fff\ggg.pdf';
  </code></pre>
  
  <p>But the name of my files will use macro variables thus I need the double quotes around the copy statement.</p>
  
  <p>Is there a way to escape doubles quotes in the copy statement? something like this for example (except % are not working)</p>
  
  <pre><code>x "copy \\aaa\%"b c d%"\eee.pdf \\fff\ggg.pdf";
  </code></pre>
  
  <p>EDIT<br>
  I also tried cats:</p>
  
  <pre><code>x cats("copy \\aaa\",'"b c d"',"\eee.pdf \\fff\ggg.pdf");
  </code></pre>