我有一个使用imagemagick“convert”压缩多个文件的液滴,我拖放到液滴上。我在网上查看了其他来源的代码,并没有真正理解它在做什么。我的问题是,我只能一次拖放82个文件,而且脚本不能工作。批处理文件液滴
这里是我的代码:
if not exist "%~p1output\"NUL mkdir "%~p1output\"
:nextFile
if "%~1" equ "" goto exitLoop
convert "%~1"* -quality 70 "%~p1output\%~n1%~x1"
shift
goto nextFile
:exitLoop
任何帮助表示赞赏。
它给出第82个文件后的任何错误? –
不,它只是终止脚本,不处理任何文件。 – user3044309