Autostart on CD

How do I create an autostart program to launch another app when a CD is placed in the CD drive - also, how to debug such a program???
pathAsked:
Who is Participating?
 
intheCommented:
an autostart program is just a text file.
do the following:
create new text file
on line 1 type: [autorun]
on line 2 type: open=notepad.exe{your program to open}
save this as autorun.inf

¤¤¤¤¤¤¤Barry¤¤¤¤¤¤¤
0
 
bryan7Commented:
add icon=myicon.ico      to add an icon

( myicon.ico = the icon file name )

bryan

0
 
intheCommented:
B.T.W if you want have a look on your pc at different inf files and you'll see you can add loads of other info about your app
Barry
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
pathAuthor Commented:
I have graded this as a based, not on the correctness as I haven't had a chance to test it, but rather on the unbelievable speed and extra information provided.

I had an answer within a couple of hours - unprecedented!!!

Wonderful Service!!!
0
 
intheCommented:
thankyou path
if you have any cd's that autoplay stick one in and have a look at it in explorer ,you'll see a file called autorun.inf in the cd's main directry no doubt,open it in notepad and you'll see what were on about ,hope we got it right for ya
barry
0
 
bryan7Commented:
0
 
pathAuthor Commented:
The service just keeps on keeping on - I can see myself visiting here regularly!!!!
0
 
bryan7Commented:
well, yeah.

this is E-E .. glad to help.

bryan
0
 
pathAuthor Commented:
Given the relative simplicity of the problem - I may have been over-generous on the points though<g>.
0
 
intheCommented:
heck no keep it up hehe ;~)

Barry
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.