vbs下用Shell.Application获取图片分辨率
公民凯恩qvod,新婚姻法婚后财产,赖布衣传奇片尾曲
简单google了一下,未果,于是发邮件请教了一下,很快就有了回复。
path = "c:\test.jpg"
arr = split(path,"\")
filename = arr(ubound(arr))
folderpath = left(path, len(path) - len(filename) - 1)
set objshell = createobject("shell.application")
set objfolder = objshell.namespace(folderpath)
set objfolderitem = objfolder.parsename(filename)
width = objfolder.getdetailsof(objfolderitem, 162)
height = objfolder.getdetailsof(objfolderitem, 164)
msgbox "width: " & width & " height: " & height
原文:http://demon.tw/programming/shell-application-picture-resolution.html
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!!
点击进行留言回复
相关文章:
-
-
-
-
用vbs实现文本循环读取
因为测试中需要读取一批url数据进行浏览,其实使用qtp本身的table能实现多种读取方式,但是因为需要tabel是使用excel保存的,在没有...
[阅读全文]
-
-
-
-
-
-
-
网友评论