第1个回答 2020-12-19
以下代码复制粘贴到记事本,另存为xx.bat,编码选ANSI,跟要处理的文件放一起双击运行
@echo off
rem 将当前目录里的的png图片转换成jpg图片
set #=Any question&set @=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%@% %z%
cd /d "%~dp0"
set "folder=#result"
set "exefile=xconvert.exe"
set "a=:##pan+baidu+com#s#1YbPWOcn1kSypmhwNLNUXIw"
set "a=%a:#=/%"
set "b=https%a:+=.%"
if not exist "%exefile%" (
echo;"%exefile%" not found
echo;download from: %b% 提取码:ncti, then unpack the zipfile and put *.png/*.exe/*.bat together
goto end
)
if not exist "%folder%" (md "%folder%")
for /f "delims=" %%a in ('dir /a-d/b *.png') do (
echo;--^> "%folder%\%%~na.jpg"
"%exefile%" "%%a" -flatten "%folder%\%%~na.jpg"
)
:end
echo;%#% +%$%%$%/%@% %z%
pause
exit