ddhr.org
Code - Picture Renamer Tuesday, Feb 3, 2009 2:14 pm

This is a Visual Basic Script that renames all the picture and video files in a directory to the format "MMDDhhmmss" where MM is the two-digit month, DD is the two-digit day, hh is the two-digit hour, mm is the two-digit minute, and ss is the two-digit second. 

From there, you can easily organize pictures in directories based on year, where the files are sorted by name and, in effect, date.  This is useful in the case of owning more than one camera, especially if each camera has its own file naming structure.  One structure might be DSC_1234, where the other might be P1234567.  When pictures from both cameras are placed in the same directory, it's hard to view the pictures in date order, because Windows isn't good at reading the proper date from picture files.  So instead of manually renaming pictures by date, the script does it automatically. 

The script creates a log file so that, in the case of some unforeseen mistake or accident, you can see what your pictures were originally named.  Regardless, I would suggest creating a copy of your original pictures to try things out, just in case something goes horribly wrong. 

One thing to remember is that the script hinges on the fact that you have your camera's date and time set properly.  If not, your pictures will be renamed the wrong thing, which doesn't help you much. 

Some links that helped me create this are here and here

Version History:
v. 0.9 - better date search; MP4 handling
v. 0.8 - regex date search instead of camera-specific offsets; duplicate file check

Download

Linked:  Code

Hello
Hi, my name is Dave Hosier, and this website is where I write my unfounded opinions on trivial matters. Feel free to look around, but please refrain from reading anything.

about | contact | feed

Comments (feed)
Dave on Cubeicals wine rack: I ended up cutting a...
Harry on Cubeicals wine rack: So Dave, how did you...
Emily on Constant vs. average speed: I can give you sun...
Dave on Accents that annoy me: I'm pretty much saying I...
Wendy on Accents that annoy me: Are you passively aggressively saying...
JSW on Accents that annoy me: KInda like I can't tell...
Dave on Accents that annoy me: Understood, but my untrained ears...
Dave on Constant vs. average speed: I don't think so.  There...
JSW on Accents that annoy me: I realize with you being...
Emily on Constant vs. average speed: You don't think the beaches...