How to make program start at windows boot[solved]

Started by
2 comments, last by Deliverance 15 years, 11 months ago
How do i make a program start at windows boot in C++? [Edited by - Deliverance on May 14, 2008 9:05:45 AM]
Advertisement
Put a shortcut to it in the startup folder, or put an entry in the Software/Microsoft/Windows/CurrentVersion/Run/ registry key.

Generally you'd tell your installer to do this though, since there's a few issues with doing this yourself, and it requires administrator privileges.

Why do you want to do this? Why not just let the installer or user do it?
I'm making a little program that i want to run in background every time windows starts. I want it to find and delete all temporary files in a given directory. The files will be deleted according every 500 ms or 1 second, i'll see that suites best without slowing down the pc. Anyway, it's just a learning exercise, and i think it would be cool to make this kind of thing.
Found what i was looking for: http://www.codeguru.com/cpp/w-p/system/registry/article.php/c5677/.
Thanks anyway!

This topic is closed to new replies.

Advertisement