Click here to Skip to main content
15,895,606 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to make exe in visual studio 2008 which can auto start on windows startup.
help me.
Posted
Comments
BillWoodruff 18-Dec-13 7:30am    
I would use the technique Adam Z. describes below, but if you must set an Application to auto-run in code:

http://simpcode.blogspot.com/2008/07/c-set-and-unset-auto-start-for-windows.html

I would also make it a user-selectable run-time option, or configuration option, whether or not auto-run is enabled/disabled.

1 solution

It has nothing to do with programming, it's related to your PC configuration. There are multiple ways to achieve it.

Simplest, without the need to adjust registry, is to place shortcut to your executable into startup folder.

In Windows 8 OS it wil be the following path:

C:\Users\%USER NAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
 
Share this answer
 
Comments
BillWoodruff 18-Dec-13 7:30am    
+5 I think this is the way to go except under very unusual circumstances.
Member 10441667 21-Dec-13 5:13am    
Thanks,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900