for %%f in (*.gif) do gifsicle --batch -O3 -k256 %%~nf.gif