xuetian 当前离线
列兵
_avatar_ 当前离线
上等兵
TOP
Five66 当前离线
上尉
77七 当前离线
中校
@echo offrem 保存为ansi编码rem http://bcn.bathome.net/s/tool/index.html?key=mediainfocd /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"pauseCOPY
@echo offrem 保存为utf-8编码chcp 65001 >nul>#.txt echo General;""%%FileName%%"",>>#.txt echo Image;%%Width%%,%%Height%%\r>out.csv echo 文件,宽,高>>out.csv mediainfo --output=file://#.txt *.tifdel #.txtpauseCOPY
aloha20200628 当前离线
少校
@echo off & powershell "[system.reflection.assembly]::loadwithpartialname('System.Drawing')|out-null;$i=[System.Drawing.image]::FromFile('扫描结果.tif');''+$i.width+','+$i.height;">图片尺寸.csvtype "图片尺寸.csv" &pause&exit/bCOPY