I'm trying to make a CD player program. I've got most of it done, and the only things that are left are a couple minor features that I'd like to be included. But I can't figure out how to do it.

1. How can I make it so that my CD player prog is the one that automatically opens when an audio CD is inserted? I think it would involve registry editing, but I don't know how to make the program do that automatically (or at the click of a button).

2. After accomplishing problem 1, How can I make it actually play automatically? I've seen other CD players that have the "/play" tag in their shortcut command line; how do I add something that allows there to be a "/play" tag in the command line and have it work correctly?

Thanks so much in advance for any help that you can provide!!!!

---Skorpion