I need to copy a folder and all its contents (files and sub-folders recursively) but exclude certain file types. For example, I have a folder c:\data with many subfolders and lots of files, both *.raw, *.tif, *.jpg, and *.txt. I want to copy c:\data but exclude all of the .raw and .tif files.
In pseudo code it would be something like: copy c:\data d:\data-lite /exclude *.raw /exclude *.tif
The robocopy command line is: robocopy c:\data d:\data-lite /s /xf *.raw /xf *.tif /copy: DAT
Note that the filter usually only applies to things below selected subdirectories. If you have some .tif or .raw files selected at the top level, you might want to deselect them first. (Or go up a level and copy the directory you were just in, with the filter in place.)
@lxp Thank you, but how do I actually execute that copy command with the filter? (Excuse my ignorance, but even though I am a long time user, I am not familiar with how to use scripting in dopus. Perhaps it is time I learned? Can you point me to some fundamental dopus documentation that would help me understand how to use this copy filter?
@Leo Thank you! This is exactly what I was looking for but did not know how to do!
As I mentioned to lxp, I am a long-time dopus user. But I have never paid attention to the "Copy Files" menu item. Where is there documentation on the capabilities of this feature? I think it might be time I paid attention!
Also, can you point me to where to look for getting started with the scripting features within dopus?