Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REM The purpose of this batch file is to copy images from all subfolders into a single folder.
- REM This is useful if you cache entire websites on Windows platforms.
- REM Copy everything between @echo off and pause and paste it in notepad and save as a .bat file.
- @echo off
- pushd %~dp0
- mkdir JPG
- mkdir JPEG
- mkdir PNG
- mkdir GIF
- for /r %%a in (*.jpg) do (
- COPY "%%a" "%~dp0\JPG\%%~nxa"
- )
- for /r %%a in (*.jpeg) do (
- COPY "%%a" "%~dp0\JPEG|%%~nxa"
- )
- for /r %%a in (*.png) do (
- COPY "%%a" "%~dp0\PNG\%%~nxa"
- )
- for /r %%a in (*.gif) do (
- COPY "%%a" "%~dp0\GIF\%%~nxa"
- )
- popd
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement