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. Run application when the system startsup

Run application when the system startsup

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

    Hi, I want to run the Application at system startup( when ever its start/boots up) without placing its EXE in startup folder. Any idea / link ? Thanks Regards.

    S L R 4 Replies Last reply
    0
    • Z zahid_ash

      Hi, I want to run the Application at system startup( when ever its start/boots up) without placing its EXE in startup folder. Any idea / link ? Thanks Regards.

      S Offline
      S Offline
      Sarath C
      wrote on last edited by
      #2

      you can start it by creating new string key under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run ( for all users ) or HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run ( execute only if current user login again) in registry, which should contain the path to your application. you can give any name to this key -Sarath

      1 Reply Last reply
      0
      • Z zahid_ash

        Hi, I want to run the Application at system startup( when ever its start/boots up) without placing its EXE in startup folder. Any idea / link ? Thanks Regards.

        L Offline
        L Offline
        Laxman Auti
        wrote on last edited by
        #3

        Put the Full path of the Application (.exe)into the registry under for local machine accessible for all users HKLM\Software\microsoft\windows\CurrentVersion\Run for the particular user HKCU\Software\microsoft\windows\CurrentVersion\Run Knock out 'T' from CAN'T , You 'CAN' if you think you 'CAN' :cool:

        1 Reply Last reply
        0
        • Z zahid_ash

          Hi, I want to run the Application at system startup( when ever its start/boots up) without placing its EXE in startup folder. Any idea / link ? Thanks Regards.

          R Offline
          R Offline
          RicoH
          wrote on last edited by
          #4

          There are 2 places in the registry that you can use for this: If you only want to run your application once on the next startup then add a new key to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\" If you want your exe to run every time windows is started then make a new key in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\" Don't think you are, know you are... custom hardware & software - olloc.be

          R 1 Reply Last reply
          0
          • Z zahid_ash

            Hi, I want to run the Application at system startup( when ever its start/boots up) without placing its EXE in startup folder. Any idea / link ? Thanks Regards.

            R Offline
            R Offline
            RicoH
            wrote on last edited by
            #5

            Damn you guys were fast :-D Don't think you are, know you are... custom hardware & software - olloc.be

            1 Reply Last reply
            0
            • R RicoH

              There are 2 places in the registry that you can use for this: If you only want to run your application once on the next startup then add a new key to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\" If you want your exe to run every time windows is started then make a new key in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\" Don't think you are, know you are... custom hardware & software - olloc.be

              R Offline
              R Offline
              Russell
              wrote on last edited by
              #6

              RicoH wrote:

              If you only want to run your application once on the next startup then add a new key to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\"

              RunOnce:omg::wtf::omg::wtf:,....Wow:-D!!!! Very usefull, thank you. Got a 5.:cool:

              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