To open an exe when the CD is inserted into the CD drive we need to create a .inf file , named [autorun.inf].
It should contains 2 lines as follows :
The name of the exe is “Autorun”. Now copy all the contents (dependant files and folders), Autorun.exe and the .inf file and write into a CD.As soon as the CD is inserted in any machine , the autorun exe will automatically get launched.
Can check now