All Forums >> [Scripting] >> Post a VBScript >> Rename Photo's Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
A while ago I created a script that would rename a file (photo) based on the date last modified, I posted it here so if you would like to see that one, search for Move and Rename pictures and you should find it.
One of the issues with this is if I connect my camera directly to my PC the datelastmodified can get screwed up. Had it happen once and it was a PITA to fix it.
Not too long ago, someone posted a script or a link to a script that read exif data and I started the basics then. Well, tonight I got a bug up my.... and decided to work on the script. I started with NameSpace and with the help of DM to get past a strange issue (thanks again DM_4ever), I was able to get a working script. The only issue I saw was when dealing with AVI files. My camera, and from what I read it seems to be standard, creates the avi file but then creates a THM file. This file is essentially a jpg and if you rename it to JPG you get exif data. But maybe I was just tired or whatever but with the way the original script was written I was having difficulty getting this working. So, I started searching for some EXIF command line tools and found jhead.exe. I started playing with this and one of the features that it has is if you give it a THM file it will rename it to JPG, get the exif data and rename the AVI file based on that info.
This is what I have so far: My folder structure is D:\NewPictures\Tools D:\NewPictures\Backup (used while the script is in dev) The script and jhead.exe are both in the tools folder
Thoughts? suggestions?
Well off to watch TV with the wife. Night all.
_____________________________
Mike
For useful Scripting links see the Read Me First stickey!