Count the number of tracks upon a CD-ROM

numtracks is a simple utility program which will just echo the number of audio tracks a CD-ROM has to the console.

It's useful if you wish to write a simple script to rip the contents of a CD-ROM to MP3/Ogg formats - to be honest it's not that useful otherwise.

If you use some sort of new-fangled GUI ripping application you'll have no need for it either...


Download from the following URL:

Notes & Credits

Most of the code was taken from the workbone console MP3 player, if not directly then indirectly.

Since there isn't much to the code you're welcome to take it and use it however you like.