Skip to content

Instantly share code, notes, and snippets.

@DevEarley
Created August 28, 2019 16:17
Show Gist options
  • Save DevEarley/f8890840a92d0310bb70be889bed4e52 to your computer and use it in GitHub Desktop.
Save DevEarley/f8890840a92d0310bb70be889bed4e52 to your computer and use it in GitHub Desktop.
Recursively get all images in a directory and copy to another folder.
for /R "C:\source\" %%G in (*.png *.jpg *.jpeg *.gif *.svg) do copy "%%G" "C:\target\"
@DevEarley
Copy link
Author

Make sure your target folder exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment