Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Rename Photo's

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,55723
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
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!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Rename Photo's - 1/19/2008 3:43:44 PM   
  mbouchard


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!

Always remember Search is your friend.
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Rename Photo's Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts