how do i do this?

This is a discussion on how do i do this? within the C Programming forums, part of the General Programming Boards category; ok i have a small proggie and i want it to run every time i reboot my pc what do ...

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    8

    how do i do this?

    ok i have a small proggie and i want it to run every time i reboot my pc what do i need to add to my source to allow this or a link to a tut would help also

    -ne0x

  2. #2
    Registered User
    Join Date
    Jul 2005
    Posts
    69
    Well we would need to know a little about what OS your using. For now I'll venture a guess that adding new shortcut to your Windows Startup group would do ok.

    Regards,
    Brian

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    8
    well i would like for it to work on most of the windows os's 9X's NT and XP oh yeah and that one ME thing (j/k)

  4. #4
    FOX
    Join Date
    May 2005
    Posts
    188
    It's an OS specific task. Your program will not run until your OS tells it to, so look up information about how your OS does things.

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    Look up sheduled tasks.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  6. #6
    Registered User
    Join Date
    Jul 2005
    Posts
    69
    The Startup group has been part of Windows at least as far back as Windows 3.1. You won't have to change your source code at all.

  7. #7
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    In other words, put a shortcut to your executable in a folder called Programs/Startup. I do that too for some of my programs.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  8. #8
    Registered User
    Join Date
    Jun 2005
    Posts
    8
    how do add keys into the registry? links to tuts would be nice

  9. #9
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528
    Quote Originally Posted by ne0x
    how do add keys into the registry? links to tuts would be nice
    This was pretty tough, but I managed to pull up a few links regarding adding keys to the registry...

Popular pages Recent additions subscribe to a feed

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