for /R "D:\mt_project\mt_firmware" %f in (*.c *.h) do copy /Y "%f" "D:\q\c\"