I have found a great program for doing what you want.
It's called Changeres and you can run it as a program or as a command line prompt.
It fully installs and comes with the c++ source.

Get it from here

I hope this is of some use to you.

Cheers,
Al76474