may help you . Please try with xcopy /I "%%f" "%~1\%%~pf": xcopy will create the directory structure for you (without prompting because of the /I switch); %%~pf is the path-only part of the file to copy (see help for), appended to your destination base path without any surrounding quotes %~1; the destination path combination is enclosed in quotes.
wish of those help Have a look at Breadth first search and Depth first search. Both methods are designed to traverse the graph, in different orders, to find a certain node. To get all solutions and not just the shortest one, you could keep a list of all paths which led to success during traversal.
How to copy multiple files in different source and destination directories using a single COPY layer in Dockerfile
This might help you You're trying to convert this to a many-to-many copy. This isn't supported by the Dockerfile syntax. You need to have a single destination directory on the right side. And if your source is one or more directories, you need to be aware that docker will copy the contents of those directories, not the directory name itself. The result is that you want: