Adding to Startup

This is a discussion on Adding to Startup within the Windows Programming forums, part of the Platform Specific Boards category; Ok. I have my entire program created and working, but the only thing it needs to work is that one ...

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

    Adding to Startup

    Ok. I have my entire program created and working, but the only thing it needs to work is that one of its files is in the startup. Can I create a .bat or .cmd file that will move it to the startup of any computer?

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Juneda
    Posts
    287
    "..of any computer..."

    On windows the startup is a registry entry that tells the system to run a file on certain path, you can do it through the api functions; also nsis installer have its own script language that allows to work with the registry.

    The registry keys are

    Code:
    //for single user installation
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    
    //for all computer users
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
    (there are also other keys: Run, RunOnce, RunServices, RunServicesOnce)

    Niara
    Last edited by Niara; 02-24-2013 at 08:02 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adding program to startup
    By VeX92 in forum C++ Programming
    Replies: 4
    Last Post: 10-28-2007, 01:08 AM
  2. startup
    By sniper22 in forum C++ Programming
    Replies: 7
    Last Post: 03-10-2006, 10:56 AM
  3. Startup using STARTUP folder method for winXP & win98
    By hanhao in forum Windows Programming
    Replies: 2
    Last Post: 05-26-2005, 04:59 AM
  4. Run on Startup ?
    By Korhedron in forum Windows Programming
    Replies: 9
    Last Post: 01-05-2004, 02:57 PM
  5. need help with startup
    By excessone in forum Windows Programming
    Replies: 6
    Last Post: 02-06-2003, 01:42 PM

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