I want to make XCOPY not only copy the subdirectories under that directory and the files in those subdirectories, but also copy the folder itself. For example, the file structure is as follows:
D:\
----------A (folder)
------A1 (subfolder)
.....(files under the A1 folder)
E:\
I want to copy the entire A folder to E, so that the final folder structure is
E:\
----------A (folder)
------A1 (subfolder)
.....(files under the A1 folder)
Using the command XCOPY D:\A E:\ /e /s /d only gives the following result
E:\
------A1 (subfolder)
.....(files under the A1 folder)
How can I achieve the function described above?
D:\
----------A (folder)
------A1 (subfolder)
.....(files under the A1 folder)
E:\
I want to copy the entire A folder to E, so that the final folder structure is
E:\
----------A (folder)
------A1 (subfolder)
.....(files under the A1 folder)
Using the command XCOPY D:\A E:\ /e /s /d only gives the following result
E:\
------A1 (subfolder)
.....(files under the A1 folder)
How can I achieve the function described above?
