Skip to content

Instantly share code, notes, and snippets.

@Robmaister
Created December 26, 2011 06:54
Show Gist options
  • Save Robmaister/1520648 to your computer and use it in GitHub Desktop.
Save Robmaister/1520648 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