Using robocopy
command I need to copy all files, but exclude files with particular character in the filename? For examlple copy all .jpg files with filenames containing underscore _ in it.
I have tried this command, but it doesn't work:
Robocopy C:\SourceFolder C:\DestFolder ^[^_]+.jpg$
Could be something really simple I'm overlooking here, but what?
There is also /XF flag to exclude certain file types, but (how) can it be used to exclude filenames containing the underscore in the filename?