Making a program run at startup

Posted on 2005-03-31
Medium Priority
Last Modified: 2010-04-23
hello all i am making a program that iw ould like to have run everytime you start your computer how would i go about doint this ? what code to use ..l. please give expmples
Question by:Sony-Controlled
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 34

Expert Comment

by:Brian Crowe
ID: 13678451
The easy way is to place a shortcut to your executable in the C:\Documents and Settings\[User]\Start Menu\Programs\Startup directory
LVL 19

Expert Comment

ID: 13678517
Another option is Adding an Entry into the Registry


Add your own key under this RUN key and give the path of the EXE to run


Author Comment

ID: 13678594
so for C:\Documents and Settings\[User]\Start Menu\Programs\Startup directory how excatly whould i get the exe to place a  shortcut there
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

LVL 14

Accepted Solution

Thandava Vallepalli earned 375 total points
ID: 13678741
Go for creating a Windows Service App... its simple to create

here are the articals

Creating a Windows Service in VB.NET

Creating a Windows Service in VB.NET - Introduction

LVL 10

Expert Comment

ID: 13679715
Adding the registry entry would be a good solution, though startup isn't bad. I think a "service" is the optimal solution in many cases. The only caveat with the service is, if you go that route you need to think about if your app requires user interaction, ie does it have a gui? If so then you would need a helper app to control the service as a service is not meant to provide user interaction. I think there are some "solutions" to this but are unstable as well as other things. Just a suggestion.

Author Comment

ID: 13680164
no there is no gui
LVL 10

Expert Comment

ID: 13680181
oh, there's no GUI? Then I think the service is the way to go, definitely. It is very simple and those links itsvtk posted explain them, I used them when I first learned.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month8 days, 18 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question