<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Completely copy one folder with its sub-folder from one directory to another directory in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Completely-copy-one-folder-with-its-sub-folder-from-one/m-p/302106#M64020</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I searched out board and found out the following code to copy folder from one direcetory to another on the server;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%sysExec xcopy &amp;nbsp; &amp;nbsp;"/dir1/folder_name/*.*" &amp;nbsp;"dir2/folder_name" /E;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I did not see the folder being copied &amp;nbsp;and there was no error message either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May you help with the correction of the code ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ivy&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2016 17:16:00 GMT</pubDate>
    <dc:creator>Ivy</dc:creator>
    <dc:date>2016-10-03T17:16:00Z</dc:date>
    <item>
      <title>Completely copy one folder with its sub-folder from one directory to another directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Completely-copy-one-folder-with-its-sub-folder-from-one/m-p/302106#M64020</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I searched out board and found out the following code to copy folder from one direcetory to another on the server;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%sysExec xcopy &amp;nbsp; &amp;nbsp;"/dir1/folder_name/*.*" &amp;nbsp;"dir2/folder_name" /E;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I did not see the folder being copied &amp;nbsp;and there was no error message either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May you help with the correction of the code ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ivy&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 17:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Completely-copy-one-folder-with-its-sub-folder-from-one/m-p/302106#M64020</guid>
      <dc:creator>Ivy</dc:creator>
      <dc:date>2016-10-03T17:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Completely copy one folder with its sub-folder from one directory to another directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Completely-copy-one-folder-with-its-sub-folder-from-one/m-p/302109#M64022</link>
      <description>&lt;P&gt;Did the target directory dir2 already exist?&lt;/P&gt;
&lt;P&gt;Also the way you reference dir2 it may have been created, or attempted to,&amp;nbsp;subordinate to where the server was running. Which may not be quite where you think. And a similar issue exists with the source directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is usually a good idea to include the root directory or mount point as the start of file paths.&lt;/P&gt;
&lt;P&gt;You may also need to incorporate the /T switch if the directory structure doesn't already exist.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 17:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Completely-copy-one-folder-with-its-sub-folder-from-one/m-p/302109#M64022</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-03T17:32:46Z</dc:date>
    </item>
  </channel>
</rss>

