0

I want to copy files within many sub-directories that match specific pattern to a new directory. I don't want to copy the folder structure as I want all of the copied files to be contained within a single directory.

I've tried this:

Robocopy C:\Source C:\Destination *nbr6.tif \S

But again, I don't want to maintain the subdirectory structure. I only want to copy files that match nbr6.tif and place in a single directory.

1 Answer 1

1

If you can use Powershell, you can try the following command line :

gci -Path C:\Source -file -recurse *nbr6.tif | % { copy $_.FullName C:\Destination }

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .