How do I burn a CD use to the "Autorun" Function?

I am deveolping an application that I am going to distribute on CD and I need to know how to make the CD start-up when inserted.
timotAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
tcornettConnect With a Mentor Commented:
timot,

-Create a file called autorun.inf
-The first line of this file should be [AutoRun]
-the next two lines set the icon of the CD and determines which executable to run when the CD is inserted.  Those two lines look like the following:
open=myprog.exe
or if your program is in another directory:
open=MyDir\myprog.exe

For the icon:
icon=myicon.ico
or if you want to use the icon of the executable use:
icon=myprog.exe,0

- Tom
0
 
tcornettCommented:
timot,

-Create a file called autorun.inf
-The first line of this file should be [AutoRun]
-the next two lines set the icon of the CD and determines which executable to run when the CD is inserted.  Those two lines look like the following:
open=myprog.exe
or if your program is in another directory:
open=MyDir\myprog.exe

For the icon:
icon=myicon.ico
or if you want to use the icon of the executable use:
icon=myprog.exe,0

The autorun.inf file should be placed in the root directory of the CD.

- Tom
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.