subst x: projects/foowebapp/ & copy *.pl x: & copy *.pm x: & copy *.html x: & subst x: /d # Or for %i in (*.pl *.pm *.html) do @copy %i projects/fooweebapp/