Home | Programming | Web Design | Contact Me  

tracknum

When you rip a 2-disc set of CDs and encode them into mp3s, they usually get put into two separate directories on your hard drive - one directory for each disc. This is a small annoyance because you don't really need the songs in separate directories the way you need them on separate discs. But you can't just move the files from one directory to the next because the track numbers in each directory start at 01 and increment. If you copy them all into one directory, you wind up with two 01's, two 02's, and so on.

This program increments or decrements the numerical prefix on each file in a directory by the amount you tell it to. So, for example, let's say you have a 2-cd set in directories named "disc1" and "disc2". The files in disc1 start at 01 and go up to 20. The files in disc2 start at 01 and go up to 15. Just go into disc2 and run the command "tracknum -n 20". This will change the names of the files so they're numbered from 21 through 35, and you can just move all the files into disc1 and retain the proper order.

Here it is:

tracknum