Advertisement
AmourSpirit

Windows Batch script to batch compress png files.

May 20th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.19 KB | None | 0 0
  1. @echo off
  2. REM Place pngcrush.exe in you path
  3. CLS
  4. FOR /F "tokens=*" %%G IN ('dir /A:-D /b *.png') DO (
  5.     Move "%%G" "%%G.temp"
  6.     pngcrush.exe "%%G.temp" "%%G"
  7.     DEL "%%G.temp"
  8. )
  9. PAUSE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement