Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

PmanC

AutoRun

This topic is 5880 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hey... how would i get an app to run when windows starts? i was thnking of editing autoexec.bat. is that the best way of doing it or is there a better way.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Put a shortcut to the program in the StartUp folder off the Start menu.

Share this post


Link to post
Share on other sites
The registry is another option. To get there open the run dialog (Start->Run) and type ''regedit''. From there you will see a windows explorer type interface. From there go:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
From there add a new entry by right clicking on the right window and make a new string value. Choose a name (It doesn''t matter) Then double click on the string and type the absolute path of the program. Now it will run whatever program you specified at startup.

Share this post


Link to post
Share on other sites
Look on www.planetsourcecode.com they have some wonderfull code. Ive seen this on the site.

Share this post


Link to post
Share on other sites
Just thought I''d also mention, all of the above comments only start the application when a user logs in. Not when windows starts. That can be a major difference. If you want the app to start before a user logs in, look into making a service. And look forward to pain you never knew possible

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!