这是整个脚本,但我只想修改以下行:
for /R %%x in (*.jpg)
我想也包括* .png和* .gif
setlocal enabledelayedexpansion enableextensions
set PATH=%PATH%;C:\"Program Files"\FileOptimizer
Set /A "threads=8,i=0"
:: initialize List
For /L %%n in (1,1,%threads%) Do Set "List%%n="
for /R %%x in (*.jpg) do (
Set /A "n=i %% threads + 1,i+=1"
call set "LIST!n!=%%LIST!n!%% "%%x""
)
For /L %%n in (1,1,%threads%) Do (
echo list: !LIST%%n!
START FileOptimizer64.exe !LIST%%n!
)
答案 0 :(得分:2)
for /R %%x in (*.jpg,*.png,*.gif)
就是这样。