jjmmrr 当前离线
一级士官
Batcher 当前离线
管理员
nconvert -info a.png复制代码
@echo off set "PictureName=C:\test.jpg" for /f "tokens=1,3" %%a in ('nconvert -info "%PictureName%"') do ( set "str=%%a" if "%%a" equ "Width" ( set "PictureWidth=%%b" ) else if "%%a" equ "Height" ( set "PictureHeight=%%b" ) ) echo,%PictureWidth% echo,%PictureHeight% pause复制代码
TOP