Results 1 to 5 of 5

Thread: How do you make your program start at start-up using the registry or win.ini?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    13
    I need my program to start at start-up using one of those 2 options. I would prefer to use the registry, but I am having a hard time creating the keys, etc. If someone could show me the code for it, that would be great. Thanks.

  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Cleveland, Ohio
    Posts
    263
    for win.ini, put a line in the [windows] section:
    RUN=Yourprogrampathandfilename.exe

    For the registry, look up the API to read and write to it, but you use this directory:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run


  3. #3
    Addicted Member jcouture100's Avatar
    Join Date
    Aug 1999
    Posts
    141
    Phobic is exactly right if you want the program to run for every user who uses the computer. If you have profiles on the computer and only want to affect specific users then you would place the reference to your program in the following registry location:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

    JC

  4. #4
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73
    Hello,
    If you post your e-mail address here then I will send you the code for the registry as it is quite long.

    Hear from you soon,
    Desire

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    13

    Here's my e-mail

    Also, can you also send me the code to remove it from registry? Thanks. My e-mail is [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width