Skip to content

Instantly share code, notes, and snippets.

@medfreeman
Forked from Robmaister/PNGCrush.bat
Created April 18, 2017 16:46
Show Gist options
  • Save medfreeman/77d7e963bc9fbc71177e5f8af7678d63 to your computer and use it in GitHub Desktop.
Save medfreeman/77d7e963bc9fbc71177e5f8af7678d63 to your computer and use it in GitHub Desktop.
A small batch utility that pngcrushes all the .png files in the current directory.
@echo off
CLS
FOR /F "tokens=*" %%G IN ('dir /A:-D /b *.png') DO (
MV %%G %%G.temp
pngcrush.exe %%G.temp %%G
DEL %%G.temp
)
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment