Hello,
How can I set the computer to launch a program when it starts up?
Thanks,
Hello,
How can I set the computer to launch a program when it starts up?
Thanks,
Adam
You have to modify a registry key but I can't recall which.
Put it in the startup group (for windows).
Or maybe tell us which OS you're on.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Yeah, I'm on Windows XP, but is there any way that I can add it to the startup group with C++ code from the program?
Adam
Are you going to make the program ask the user for permission before adding itself to the startup group?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
You can copy a shortcut to C:\Documents and Settings\user\Start Menu\Programs\Startup (I think). Programs in there are automatically executed when the computer turns on.
Salem's right, though. You should ask the program user if they want the program to start when their computer turns on. It could be very annoying.
Why do you want the program to start up when the computer turns on?
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.