Robocopy, XCOPY and all that stuff apparently refuse to accept wildcards in the source directory.
I am looking for a way to copy entire directories, of which the names start with a certain pattern.
This implies the use of a wildcard.
e.g. Robocopy d:\data\ABC* d:\test\ /s
The idea being that any directories within d:\data of which the name is starting with "ABC", would be copied into d:\test\
Including any files or subdirectories that may reside within those ABC-directories.
It is my impression that all copy-utilities only accept wildcards on filename level, but refuse accepting wildcards on the level of directory names.
Any ideas or suggestions ?
I am looking for a way to copy entire directories, of which the names start with a certain pattern.
This implies the use of a wildcard.
e.g. Robocopy d:\data\ABC* d:\test\ /s
The idea being that any directories within d:\data of which the name is starting with "ABC", would be copied into d:\test\
Including any files or subdirectories that may reside within those ABC-directories.
It is my impression that all copy-utilities only accept wildcards on filename level, but refuse accepting wildcards on the level of directory names.
Any ideas or suggestions ?