Jimmy
Thu Dec 04 02:58:36 CST 2003
Hi,
>-----Original Message-----
>hello,
>
>i have many pictures (most are .tiff) and i need to get
the heigt and
>weidth of every picture.
>i tried using <<CreateObject ("Imaging.Application")>>
but its not working.
>its only telling me 0 as size.
>
>can anyone please help me??
>
>.
>
The following script can extract the info. you want:
Retrieve Extended File Properties
Dim arrHeaders(34)
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace("d:\temp\pic")
For i = 0 to 33
arrHeaders(i) = objFolder.GetDetailsOf(objFolder.Items, i)
Next
For Each strFileName in objFolder.Items
For i = 0 to 33
Wscript.echo i & vbtab & arrHeaders(i) _
& ": " & objFolder.GetDetailsOf(strFileName, i)
Next
Next
from TechNet Script Center,
http://www.microsoft.com/technet/scriptcenter/filefolder/s
crff64.asp
Regards,
Jimmy