Thread: Starting a program when OS starts

  1. #1
    Registered User
    Join Date
    Jun 2005

    Starting a program when OS starts

    How can I start a program when the operating system boots? I'm trying to cover my program through a variety of OS, so I'm trying to avoid using Systray on Windows XP. If the systray is the only way, please tell me how I can get my program there. And say I wanted to create a couple of files called myfile.txt. How can I stop my program from overwriting files with the same name? Or rather how can I keep on adding a different number to the end of each file name, that has not been used, to stop it from overwriting?

  2. #2
    Join Date
    Jun 2005
    you can set it to add a line to the registry
    to start the program up when the os loads.

    just look up on msdn how to create a register entry and just
    look up the place and the information you need to put in the

    both should be easy to find on msdn, if not google is good.

  3. #3
    Registered User
    Join Date
    Jan 2005
    systray is just a place that an application can display an icon it dosen't have anything to do with auto starting.
    which ever approach you take will be OS dependent.

  4. #4
    Registered User
    Join Date
    Jun 2005
    Okay! Thanks everyone!


    Both MSDN and Google seem to give irrelevant results. MSDN only says to use the registry editor that comes Visual Studio, but I'm using Dev C++ and the gcc compiler. So could someone at least give me an example or tutorial of how to tell the program or dll to add a registry key to the registry files?
    Last edited by Beasty; 06-19-2005 at 09:59 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  2. this program just starts and terminates
    By s2theG in forum C Programming
    Replies: 2
    Last Post: 07-17-2005, 03:30 PM
  3. Starting a Program, use C or C++?
    By firestorm in forum Windows Programming
    Replies: 12
    Last Post: 04-11-2005, 09:07 PM
  4. How to program a OS
    By iwod in forum C++ Programming
    Replies: 3
    Last Post: 11-03-2001, 08:20 PM