Copy Folders & Files - How To Do This
Posted: 11 Mar 2015 00:38
I am trying to copy a directory and its sub-directories to the root of a USB drive, which is D:
Here is part of the batch file:
What I end up with is all the sub-directories and files in "This App" but not the folder "This App".
Files in "This App" get copied to the root of D:
Thanks.
Here is part of the batch file:
Code: Select all
@Echo Off
setlocal enableDelayedExpansion
CHDIR C:\
CHDIR "\Test Data"
XCOPY "This App" d: /E /I /Y
What I end up with is all the sub-directories and files in "This App" but not the folder "This App".
Files in "This App" get copied to the root of D:
Thanks.