Copy Files And Subdirectories With Directory Structure
Here is an example of how to copy or move the files and folders with sub-folderer XCOPY or ROBOCOPY from command line. Files can me copied or moved to a different folder or drive with exactly the same folder structure.
DOS commands used: XCOPY or ROBOCOPY
--USING robocopy http://ss64.com/nt/robocopy.html ROBOCOPY C:\ K:\SQLScriptsC *.sql /XD dirs C:\users "C:\Documents and Settings" /S /r:1 /w:1 --USING xcopy --http://ss64.com/nt/xcopy.html XCOPY C:\*.sql K:\SQLScriptsC /s /i