need help with startup

This is a discussion on need help with startup within the Windows Programming forums, part of the Platform Specific Boards category; im very new to programming but i would like to know how to make a program load up the moment ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    2

    need help with startup

    im very new to programming but i would like to know how to make a program load up the moment windows starts like my antivirus and firewalls do, any help is appreciated.

  2. #2
    Registered User sean345's Avatar
    Join Date
    Mar 2002
    Posts
    346
    This information is stored in the registry. First you will need to learn to edit the registry. I don't know the exact key, but a certain part keeps all that information. You might try to take a look at regedit and do a search for something that starts up.

    - Sean
    If cities were built like software is built, the first woodpecker to come along would level civilization.
    Black Frog Studios

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    To a certain extent, it depends on which versions of Windows you are running, but generally add the path to the registry key...

    HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Run

    ... to load a program when a specific user logs on, or...

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Run

    ... for the machine.

    Be careful, you can louse up your machine big time fooling around in the registry.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    Registered User
    Join Date
    Feb 2003
    Posts
    2
    hey thanks a lot fellas, but i have one more question, in hkey.... run i had an icon called [default] which had no information in it, does this have any use at all or is it just there for no reason what so ever? anyways thanks again.

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    i hate programs that edit the registry to put on startup, i like it much better when programs just put a shortcut to their application in: %WINDIR%\Start Menu\Programs\Startup
    "There are three kinds of people in the world...
    Those that can count and those that can't."

  6. #6
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> does this have any use at all or is it just there for no reason what so ever?

    I think, if you look around, you'll find them in just about all keys. I don't know if they are ever used, or are simply placeholders, whatever, I would advise leaving them alone.

    Okie is right to a certain extent, the startup folder is also a way of starting things up, and safer than fiddling with the registry, but of course, on NT cored systems, it is user specific.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  7. #7
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    >> on NT cored systems, it is user specific.

    Thats true, on NT, 2K and XP, you have to get the username, and then put it in "C:\Documents And Settings\USERNAME\Start Menu\Programs\Startup\" (is there an environment variable for the username?)
    "There are three kinds of people in the world...
    Those that can count and those that can't."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Startup process
    By ssharish2005 in forum Tech Board
    Replies: 8
    Last Post: 01-23-2009, 05:01 AM
  2. Get program to copy itself into program files, then start on startup.
    By guitarist809 in forum Windows Programming
    Replies: 6
    Last Post: 03-03-2008, 09:42 AM
  3. Replies: 1
    Last Post: 07-12-2005, 10:03 PM
  4. Startup using STARTUP folder method for winXP & win98
    By hanhao in forum Windows Programming
    Replies: 2
    Last Post: 05-26-2005, 05:59 AM
  5. The long startup.
    By Sentaku senshi in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 08-11-2002, 12:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21