I would like a executable file or a batch file to do the following.
Look at all the files in a folder (the folder will only have jpeg files). Look at the dimensions of the file and sort the jpeg into either square(height and width is equal), portrait (width is smaller than height) or landscape (width is larger than height).
Sorted pictures will be files into folders called Square, Portrait or Landscape. If the folder exists file them appropriately, if not then create the folder and file.