for img in `ls *.jpg` do convert -resize 50% $img thumb-$img done
for %a in (*.jpg) do convert.exe -resize 50% %a thumb-%a