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. Any way to start an application at bootup?

Any way to start an application at bootup?

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 4 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.
  • S Offline
    S Offline
    ShaluMalu
    wrote on last edited by
    #1

    Hello everybody! Is there any way to start an application at bootup! for eg: a program to display the date of the day when the user has logged in! If you happen to know the concept,I humbly request you to kindly respond me! Thanks in advance! Shalini

    N R J 3 Replies Last reply
    0
    • S ShaluMalu

      Hello everybody! Is there any way to start an application at bootup! for eg: a program to display the date of the day when the user has logged in! If you happen to know the concept,I humbly request you to kindly respond me! Thanks in advance! Shalini

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      ShaluMalu wrote:

      Is there any way to start an application at bootup

      Add the path of the exe that u want to run on startup under the following key in registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

      nave

      1 Reply Last reply
      0
      • S ShaluMalu

        Hello everybody! Is there any way to start an application at bootup! for eg: a program to display the date of the day when the user has logged in! If you happen to know the concept,I humbly request you to kindly respond me! Thanks in advance! Shalini

        R Offline
        R Offline
        Roger Stoltz
        wrote on last edited by
        #3

        How about a shortcut in the StartUp folder below the Start menu?


        "It's supposed to be hard, otherwise anybody could do it!" - selfquote

        1 Reply Last reply
        0
        • S ShaluMalu

          Hello everybody! Is there any way to start an application at bootup! for eg: a program to display the date of the day when the user has logged in! If you happen to know the concept,I humbly request you to kindly respond me! Thanks in advance! Shalini

          J Offline
          J Offline
          James R Twine
          wrote on last edited by
          #4

          Since you mentioned bootup, and not at user logon, using the startup folder or the Run key will not work as they require a user logon to take place.  If you really want to use the Registry, you need to use the following key:

          HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices or RunServicesOnce

          Note that the Run key is also ignored in Safe Mode.    However, I would suggest a Windows Service.  They are designed to be started when the system starts, and will be running when a user logs on and will remain running after a user logs off.  They can easily receive for logon/logoff events.    If you need finer control the point where your application starts, I think you would have to go the driver route.    Peace!

          -=- James
          Please rate this message - let me know if I helped or not! * * * If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
          Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
          See DeleteFXPFiles

          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