Have you seen this thread:
This command line utility may be just what you are looking for. Make sure you read the entire thread to see what has developed and changed, so that when you build the latest version you are familiar with its capabilities, etc.
Good luck,
Kirk