At the moment I am using an xcopy command to copy all files with a certain extension to another folder. As the number of files in this folder increases I'd like to organise them into sub folders and have the directory structure mirrored. However I don't want the entire folder contents copied over as there are files not needed in the destination.
My command is currently this
If I organise my ascx files into sub directories, can xcopy recreate the structure but only copying the .ascx files needed in the destination. Or is there another command line utility that can do so.Code:XCOPY "$(ProjectDir)usercontrols\*.ascx" "..\..\..\Website\usercontrols\" /Y