>>>Is there a command to copy an entire folder to another location?
>>>I can do a MKDIR and then copy the source folder *.* to the new place but was wondering if there is a better way?
>>>
>>>Thank you,
>>>Rich Murillo
>>
>>In application Hugos scripting host solution is probably better. In dev you can always fire a quick xcopy /E, which is probably better in that use case than the easy to remember /S. Option /H probably relevant as well, /G you should always ponder and not call autamaticaly via 1 line batch file..
>
>For lurkers, it's worth pointing out that any time one is contemplating using XCOPY, one might want to use ROBOCOPY instead. Besides the well-documented differences that can be found by Googling [robocopy vs xcopy], ROBOCOPY supports deep folder structures. XCOPY fails if it's fed a total path length longer than 256 characters, ROBOCOPY does not.
In the
highly improbable case (see below) where someone might be using an older version of Windows (e.g. Windows XP, Windows 2003), ROBOCOPY
might not be available (you can get it through the Resource Kit however).
http://www.techrepublic.com/article/report-52-of-businesses-still-running-windows-xp-despite-support-ending-in-2014/