If I copy a part of a directory tree I want xcopy to create exactly the path
in the target directory. In other words if I perform:
FOR /F "tokens=*" %%a in (xcopydirs.txt) do xcopy %%a\*.* /s /y E:\backup\%%a
doesn't work because the target is resolved to E:\backup\D:\project1
which is not a correct target dir.
The contents of xcopydirs.txt is e.g.
What I want to achieve is that in the target dir later the structure is as follows:
How do I solve the problem ?