I got this Perl script that recurses through a tree and converts images that you can make use of... http://www.ecf.utoronto.ca/~goodi/files/thumbnail_creator.pl Its under the MIT license ( http://www.ecf.utoronto.ca/~goodi/html/software.html) which basically says you can do whatever you want with it.
Scenario of what I am trying to do:
c:\bla\image_viewer\1070000001\00008\tiff image. I am trying to go from the image_viewer part and recurse down the dir tree to each subdir and inside the sub is the tiff. I need to pull the date out of the tiff image (not the creation date or mod time) and append it to the directory name. I don't have to code with me now, I will post what i have tomorrow.