So, this weekend I needed to clear off all of the pictures that I had taken on my Motorola v600 because I was loaning it out to George. The problem with transferring the photos over Bluetooth OBEX is that file creation dates are lost.
Luckily, the v600 saves the pics with filenames in this format: MM-DD-YY_TTTT.jpg. I decided to write up a quick little app that used a Regular Expression to grab the time info from the filename and then update the file creation/modification timestamps so that the photos would have the proper meta information.
I did a quick search online and found a great short code sample on Code Project that told me the API to use to change the timestamps (it’s File.SetCreationTime(file, dateTime) by the way) and I verified my RE using my favorite RE editor, Expresso, and twenty minutes later I had my tool.
I’m going to add a bit more customizability to it (in case there are cameras out there that use a different filenaming method) and post it up here. Should have it up later this week.
Hey, I’m just wondering if there’s a code to Rename a bunch of files with the same prefix or suffix?
If you have the time, please email me. (I don’t realy expect a response, but nothing’s wrong with trying
.
Hmn…That’s all.
P.S. Currently, I’m looking for a capable programmer who “know” how to code what I want (I’m an inventor who has jumped on the Internet Marketing bandwagon: I’ve gotten lost of ideas/features that are needed for the management aspects of Internet Marketing). I know there’s a demand/market for my ideas, but I lack the programming knowledge to produce scripts/software for the features.
Anyway, if you have some time to spare & interested in helping me and my other programming friends, please email me.
BTW, I chance upon your blog via–I think’–your dad’s website at wolosky.com (I’m trying to find who own WillItWork.com
.
Hello there M.T.,
>Hey, I’m just wondering if there’s a code to Rename a bunch of files with the same
>prefix or suffix?
Can you be more specific? Can you provide an example of filenames before and after this process that you’re describing?
Due to my current employment contract, I am not permitted to “moonlight” and do programming projects for others, as that could be considered a conflict of interests. There are many sites on the net though that allow you to be connected with people who can do the coding for you (http://www.rentacoder.com/ is one such site that comes to mind).
As for wolosky.com and WillItWork.com, both of those are actually owned by me, not my dad. WillItWork.com was a Y2K search engine project that myself and some partners operated from 1998-2001 as part of Lab 2K, LLC (http://www.lab2k.com).
-howard