C Board  

Go Back   C Board > Community Boards > General Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 03-24-2007, 03:04 AM   #1
csd@auth
 
Join Date: Oct 2006
Location: Greece
Posts: 71
how to make my program run on windows start up

Hi all, I want to make a program that starts on windows startup.
I ' ve searched a little and found a good way to do this is to write in registry at
HKLM\Software\Microsoft\Windows\CurrentVersion\Run
a key which name is your program name and has a value of your program's path.

Do you know any function to access the registry?
kantze is offline   Reply With Quote
Old 03-24-2007, 03:32 AM   #2
CSharpener
 
vart's Avatar
 
Join Date: Oct 2006
Posts: 5,305
why not to put shortcut to your program into Start/Programs/StartUp folder?
__________________
If I have eight hours for cutting wood, I spend six sharpening my axe.
vart is offline   Reply With Quote
Old 03-24-2007, 03:37 AM   #3
The superheterodyne.
 
twomers's Avatar
 
Join Date: Dec 2005
Location: Ireland
Posts: 2,215
You can also, I believe, put it in your scheduled tasks (control pannel->scheduled tasks, I think), and make it run on startup, or once a day or something.
__________________
I blag!
twomers is offline   Reply With Quote
Old 03-24-2007, 04:14 AM   #4
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,492
Reg*, and this should be on the Windows board.
__________________
All the buzzt!
CornedBee

"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
CornedBee is offline   Reply With Quote
Old 03-24-2007, 04:29 AM   #5
csd@auth
 
Join Date: Oct 2006
Location: Greece
Posts: 71
I don't want to do this manually. I want the program make it self run on windows start up.
Puting it on the start up folder is the easiest way to do it manually but how can this happen programmaticly.
kantze is offline   Reply With Quote
Old 03-24-2007, 06:34 AM   #6
CSharpener
 
vart's Avatar
 
Join Date: Oct 2006
Posts: 5,305
Quote:
Originally Posted by kantze
I don't want to do this manually. I want the program make it self run on windows start up.
Puting it on the start up folder is the easiest way to do it manually but how can this happen programmaticly.
Create shortcut programmatically and copy it to that folder... Installshield has it even on the resource level... What installer do you use?
__________________
If I have eight hours for cutting wood, I spend six sharpening my axe.
vart is offline   Reply With Quote
Old 03-24-2007, 08:43 AM   #7
csd@auth
 
Join Date: Oct 2006
Location: Greece
Posts: 71
vart I don't use any installer!
I'm experimenting on simple programs at the moment.
I 'd like to make a program that calculate windows up time , how many hours a day i use my pc and other intersting stuff.
kantze is offline   Reply With Quote
Old 03-24-2007, 11:14 AM   #8
Yes, my avatar is stolen
 
anonytmouse's Avatar
 
Join Date: Dec 2002
Posts: 2,544
CODE: Add the current program to the startup folder.
anonytmouse is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adventures in labyrinth generation. guesst Game Programming 8 10-12-2008 01:30 PM
Question.. pode Windows Programming 12 12-19-2004 07:05 PM
Simple Windows Program - text? Doagie Windows Programming 1 11-27-2004 02:21 AM
FlashWindowEx not declared? Aidman Windows Programming 3 05-17-2003 02:58 AM


All times are GMT -6. The time now is 09:13 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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