Sorting images based on dimensions into folders.



Hi folks,

I'm a complete beginner to windows script host, and I have a particular
job that I think it's suitable for.
I posses over 35,000 car photos of various sizes sorted into about 100
folders or so. I wish to sort out all the images into <800x600,
800x600, 1024x768, 1280x1024 and 1600x1200 and larger. I'd like to do
this on a folder by folder basis, automated.

I'm assuming that in wsh its possible to tell the script to go into
each folder in a list and perform the requested actions on each file.
That is, create said folders, look at the dimension of each file and
move them into the appropriate folder.

However, I haven't managed to find anything on sorting images in this
manner or accessing said file attributes. Has anyone already invented
this wheel and could I borrow it please if so? :-).

Thank you folks.

.