Using forfiles with multiple file types for search mask?

Not as nice as I hoped for but this oneliner can help out. Notice however that you can’t use * as a filter because the IN function starts selecting files in that case.

for %G in (.exe, .dll, .xyz) do forfiles -p "C:abc\del" -s -m *%G -d -70 -c "cmd /c echo @path"

Used this for reference.

Leave a Comment