For the CD-rom drive. Make a new.txt file and rename it autorun.ini. The place these three lines of code in the file
[autorun]
open=autorun.exe
icon=icon.ico
where autorun.exe is the program that you want to start up automatically and icon.ico (this is optional) is the icon you want to be displayed in My Computer. Make sure the first line has the square brackets on it though.
I think this is how it is done. I haven't used autorun in like two years (since I haven't made anything recently to put on a CD). I hope this helps. If it doesn't work, let me know.
If you want fresh underwear in the morning, take it off the night before.