Windows Batch script to batch compress png files.
@echo off
REM Place pngcrush.exe in you path
CLS
FOR /F "tokens=*" %%G IN ('dir /A:-D /b *.png') DO (
Move "%%G" "%%G.temp"
pngcrush.exe "%%G.temp" "%%G"
DEL "%%G.temp"
)
PAUSE
@echo off
REM Place pngcrush.exe in you path
CLS
FOR /F "tokens=*" %%G IN ('dir /A:-D /b *.png') DO (
Move "%%G" "%%G.temp"
pngcrush.exe "%%G.temp" "%%G"
DEL "%%G.temp"
)
PAUSE
Comments
0 B
|👍
/👎