Robocopy copy a folder with a certain name

0

I wanted to know if it is possible to copy the contents of a folder that contains a specific name, for example:

  • Folder1
    Sub1
    Sub2

  • Carpeta2
    Sub1
    Sub2

I tried the following:

  

robocopy "C: \ source \" "C: \ destination \" "* Sub1 *" / E

This does not work, but I've seen that in this way you can filter by file extension, which is not my case.

    
asked by nachfren 16.08.2016 в 17:22
source

1 answer

1

Use the xcopy command:

xcopy C:\origen\ C:\destino\

that copies everything inside the source folder, unfiltered

    
answered by 16.08.2016 в 17:40