I assume you are talking about your own Cd'/DVD's.
Open NOTEPAD and create a document called autorun.inf
In this document you need the following
open= (name of program to run)
NOTE: square brackets on autorun.
add this file to the CD/DVD you wish to create.
It should then autostart