Thank you for reaching out. My assumption is that you are using GSCopy or GSCopypro, if that is the case, then you could use this format
/IF:ext1,.. :: Include files by mask. Supports * and ? wildcards
Example: GSCOPYPRO c:\source c:\destination /copyall /if:tmp*.doc,log.log...