We could start arguing that even since the Olden Times of the Microsoft Disk Operating System such thing was possible and that we have just started analyzing the syntax of the
FOR command in order to achieve the same result on the Microsoft Windows Operating System.
However, a very quick solution for you is to install GHISLER_Christian's Total Commander Static Software Application and just to press the F5 Key on the Folder that you want to be copied and to specify only the
*.cst File Extension that you are interested in.
We have just tested this solution and it is working very fine. It is keeping the Folder Structure as you desired.
On a second thought, there is also no need even to dig into the intricacies of the Batch-Files Processing System of the Microsoft Corporation. This Issue must have arisen so often that it was solvable even since the Olden Times of the
xcopy Command that has preceded the
As you can see above, we have also tested this Secondary Solution and it is also working out just fine. It is maintaining the Folder Structure as you wished. You only have to adjust the above-mentioned
xcopy Command in order to accommodate your Source Folder, your Destination Folder and your
*.cst File Extension.