Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Better than the Startup folder

Better than the Startup folder

Scheduled Pinned Locked Moved C / C++ / MFC
windows-adminquestion
7 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jason Hooper
    wrote on last edited by
    #1

    I know some programs automatically start when the Windows OS is launched, but they are not in the Startup menu. The best I've been able to figure out so far is that it is a registry addition you must make to load your program. Where should I be looking for more information about this? Thanks, :suss: -Jason

    C R 2 Replies Last reply
    0
    • J Jason Hooper

      I know some programs automatically start when the Windows OS is launched, but they are not in the Startup menu. The best I've been able to figure out so far is that it is a registry addition you must make to load your program. Where should I be looking for more information about this? Thanks, :suss: -Jason

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      There's two - Run and RunOnce ( which runs the program then deletes the entry ). I dunno where they are, I always find them by searching for 'RunOnce'. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

      L 1 Reply Last reply
      0
      • C Christian Graus

        There's two - Run and RunOnce ( which runs the program then deletes the entry ). I dunno where they are, I always find them by searching for 'RunOnce'. Christian After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce Michael Martin Pegasystems Pty Ltd Australia martm@pegasystems.com +61 413-004-018 "Don't belong. Never join. Think for yourself. Peace" - Victor Stone

        N J 2 Replies Last reply
        0
        • L Lost User

          HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce Michael Martin Pegasystems Pty Ltd Australia martm@pegasystems.com +61 413-004-018 "Don't belong. Never join. Think for yourself. Peace" - Victor Stone

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          Put it in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run if you want it for all users Nish

          1 Reply Last reply
          0
          • L Lost User

            HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce Michael Martin Pegasystems Pty Ltd Australia martm@pegasystems.com +61 413-004-018 "Don't belong. Never join. Think for yourself. Peace" - Victor Stone

            J Offline
            J Offline
            Jason Hooper
            wrote on last edited by
            #5

            Hello. Thanks for responding so quickly. I've got a followup question:

            // add the key
            
            CRegKey key;
            
            key.Open(HKEY\_LOCAL\_MACHINE, "\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run");
            key.SetKeyValue("Igloo", "foo");
            key.Close();
            

            This tends to ASSERT. Do you immediately spot anything wrong with the method I'm using to add a Name "Igloo" and a value "foo" (which will be the program's filespec.) :suss: -Jason

            S 1 Reply Last reply
            0
            • J Jason Hooper

              Hello. Thanks for responding so quickly. I've got a followup question:

              // add the key
              
              CRegKey key;
              
              key.Open(HKEY\_LOCAL\_MACHINE, "\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run");
              key.SetKeyValue("Igloo", "foo");
              key.Close();
              

              This tends to ASSERT. Do you immediately spot anything wrong with the method I'm using to add a Name "Igloo" and a value "foo" (which will be the program's filespec.) :suss: -Jason

              S Offline
              S Offline
              solex
              wrote on last edited by
              #6

              I'd say the \\Software\\... should be just Software\\..... A vast majority of our imports comes from outside the country. George W. Bush

              1 Reply Last reply
              0
              • J Jason Hooper

                I know some programs automatically start when the Windows OS is launched, but they are not in the Startup menu. The best I've been able to figure out so far is that it is a registry addition you must make to load your program. Where should I be looking for more information about this? Thanks, :suss: -Jason

                R Offline
                R Offline
                Rick Crone
                wrote on last edited by
                #7

                In Win2000 in the control panel there is Scheduled Tasks. You can set this up there. It may just make the registery entry for you... but it is easy.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups