Copy all files in a folder (including all sub-folders recursively) into another folder
<pre><code>set /P source=C:\Users\akshjosh\Documents\PROJECTS\119657_119578\119657\Config
set /P destination=C:\Users\akshjosh\Documents\PROJECTS\119657_119578\119657\Hi
set xcopy=xcopy /S/E/V/Q/F/H/I/N
%xcopy% %source% %destination%
</code></pre>

<p>this does not work.</p>

<p>Can anyone tell me what's wrong ?</p>

<p>Update:
The following code works but it creates the entire directory structure inside the destination. I only want the files to be copied.</p>

<pre><code>xcopy /s /e /y "C:\Users\akshjosh\Documents\PROJECTS\119657_119578\119657\Config" "C:\Users\akshjosh\Documents\PROJECTS\119657_119578\119657\Hi"
pause
</code></pre>