Question on "GetFile" command

R

Raad

How do I access the "Dimesions" attribute of photo files
(which Windows Explorer displays under folder details)?

For example, I can get file size data using this code:

Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(FPath & "\" & FN(I))
MyFileSize = f.Size

FYI: the "Dimensions" attribute contains photo "width x
height" in pixels for standard photo file formats
like .jpg.

Thanks. Raad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top