xuetian 当前离线
列兵
_avatar_ 当前离线
上等兵
TOP
Five66 当前离线
上尉
77七 当前在线
中校
@echo off rem 保存为ansi编码 rem http://bcn.bathome.net/s/tool/index.html?key=mediainfo cd /d "%~dp0" ( echo 文件,宽,高 for %%i in (*.tif) do ( for /f "delims=" %%a in ('mediainfo --output^="Image;%%Width%%,%%Height%%" "%%i"') do ( echo "%%i",%%a ) ) ) > "out.csv" pause复制代码
@echo off rem 保存为utf-8编码 chcp 65001 >nul >#.txt echo General;""%%FileName%%"", >>#.txt echo Image;%%Width%%,%%Height%%\r >out.csv echo 文件,宽,高 >>out.csv mediainfo --output=file://#.txt *.tif del #.txt pause复制代码
aloha20200628 当前离线
@echo off & powershell "[system.reflection.assembly]::loadwithpartialname('System.Drawing')|out-null;$i=[System.Drawing.image]::FromFile('扫描结果.tif');''+$i.width+','+$i.height;">图片尺寸.csv type "图片尺寸.csv" &pause&exit/b复制代码