There is a huge industry geared toward the whole concept of making life easier for you. Yet, they keep trying to extract a price in exchange. By perseverance, I found out that it is totally unnecessary to do so.
You see, I have a whole bunch of pictures sent to me by a friend, named in such manner: “Picture-1.jpg”, “Picture-2.jpg”, and so on forth for hundreds of pictures.
The problem with the naming of those files is the program I use to view those pictures. IrfanView is a fabulous program that allows me to, for example, view, crop, tweak, use as slideshow, and wallpaper all our pictures.
However, by default, the program take a character-by-character interpretation of the file name ordering. For example, the number “1″ should be followed by “2″ and so on forth to “10″. But if you interpret it character-by-character, “1″ is followed by “10″ before “2″.
It does not interpret numbers the same way we do. In order to interpret it in a numeric way, we have to pad the numbers with leading zeros. Instead of 1, 10, and 100 — we have 001, 010, and 100. With that in mind, the program now recognize that 002, not 010, comes after 001.
Usually, I would do the re-naming by hand, but it can be a labor-intensive process, and quite a repetitive one at that. So I set out to find a program to automate the process for me.
Googling for “rename files” yield thousands of links, full of sites pushing their version of this common theme. One consistent theme is that there are usually money involved. I downloaded a dozen different programs, in the “donate-ware” and shareware veins, and none does the job I want. Some would gleefully list the files in its incorrect order, and rename those files to the right order — but with the pictures still out of order.
There was only one program I found that does exactly what I want – by recognizing the numbers already provided, and padding it appropriately. However, it would rename 10 files, then quit with a message, “If you want us to do more, pay us $19.95 (plus whatever fees we feel like charging you.)”
How Rude.
I was half-considering buying the license once I saw this available feature, but this cripple-ware behavior turned me off to their tool forever. Note to shareware authors: Cripple the software, and you will never see my money, period.
I decided that my Google search was not specific enough, and tried “rename file pad numbers”. That search brought me to a website where this one guy actually got frustrated enough that he went out and wrote a Perl program to do the trick.
Score!
Yes, it is not a pretty program — we have to run it on the command line. However, it does the trick just right for someone like myself, tired of manually tweaking hundreds of files just because some of our programs can not be bothered to interpret numbers the way we do.