I want to have something in my program to start when I insert a CD in my computer. How should this be done ??
Printable View
I want to have something in my program to start when I insert a CD in my computer. How should this be done ??
Use autorun?
autorun.inf
In a text file type:
[autorun]
OPEN=autorun.exe ' name of your program
ICON=sky.ico 'choose an icon.
Autorun.inf doesn't work if AutoPlay is off. When it's off, there is really no way to make the program autolaunch. And I hate autolaunching things anyways, so I have AutoPlay off :D
I'm sure there a noice API call to get around that if someone tried!
Mathew Anyone???
Yes yes, but the problem is you have to have a program open to see if CD is inserted. He wants a program to automatically open when CD is inserted, not a program to see if CD is inserted. Get it?
No i dont get it!
I thought he was chasing something that made his program run when the cd was inserted into the cd drive?
MerryVIP:
If the autorun.inf file is on the same cd his program is when he inserts the cd it will run the program! On most machines!Quote:
Yes yes, but the problem is you have to have a program open to see if CD is inserted. He wants a program to automatically open when CD is inserted, not a program to see if CD is inserted. Get it?
What program do you need to see if a cd is inserted!
Now I'm a bit confused. But I have a headache anyways...
1: How to make my program autolaunch from a CD?
2: Autorun.inf
3: Autorun.inf doesn't work in some computers because AutoPlay is set off
After this I'm a bit confused. We aren't making a program detecting if a CD is inserted, are we? And you are saying the same. That makes me confused. So, question answered, no more replies :D