title: Batch script to move all landscape oriented photos into their own sub directory
body: <p>Suppose I have a folder that contains a bunch of image files. JPG, PNG, etc. I want to create a batch script that will: </p>
  
  <p>1) loop through each file <br>
  2) for each file, check if the image width is greater than the image height<br>
  3) if true, move into a sub-directory named landscape.</p>
  
  <p>I know how to do #1 and #3, but am lost on how to go about #2.</p>