How do you copy specific file types from one folder into another folder while retaining the folder structure?
The following batch command is capable of copying the specific file types to a folder, but lacks being able to retain the folder structure:
for /R c:\source %%f in (*.cpp,*.h) do copy %%f x:\destination\
How could I modify this to keep the folder structure from the source? Thanks!