Copy whole folder with .bat script
<p>I try to copy the folder <code>FolderA</code> (contains html and php sites) which is in the same directory as the .bat script to another location.</p>

<p><strong>.bat Script</strong></p>

<pre><code>copy FolderA C:\xampp\htdocs\FolderA
echo "script end"
timeout /T 3 /nobreak
</code></pre>

<p>This creates a file <code>FolderA</code> on <code>C:\xampp\htdocs</code>, but it is NOT a folder! It is just a file with no extension and the file has html code from some of my files as content!?</p>

<p>How can i copy <code>FolderA</code> to <code>C:\xampp\htdocs</code>?
<a href="https://i.stack.imgur.com/mgrUU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mgrUU.png" alt="enter image description here"></a></p>