Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to start an app with windows 1

Status
Not open for further replies.

Grizz2

Programmer
Dec 4, 2001
52
US
Hey all,
I have an app I want to start up when windows is started and looking for the proper way to approach it. Basically it will start in the background, check some details, then either shutdown or display a form. Some questions.
1. How to set it so it starts with windows?
2. Should I force it to wait until all processes are finished?
3. Anything else I should be careful of?

Thanks
 
3) You should be careful of the user. He has the ability and motivation to smash the PC to pieces.

2) Don't worry about waiting for the other "processes". Windows will probably tell you when you have stepped on too many toes. (This may take a while. Probably won't happen until the day you show your app to the CEO.)

1) There are many ways to execute your program on Windows startup:

What is the best way? Hmmm... it all depends on the user and the current Windows version. You might be able to launch by placing your app in a folder... like the Start Menu / Run... or by placing a reference in the registry under the Run, RunOnce, RunServices, etc. keys, or by modifying one of the Win legacy startup INI files (WIN or SYSTEM.INI). You might use one of the few undocumented startup features that have been noted at various places in the Tek-Tips forums (hey, these will only work if both the user and the OS version are aligned with Jupiter and Mars). One, laughably, involves running an app from WIN.COM's command line (go figure).

It all depends on what you intend to do and which problems you are willing to face.

Most of the mechanics for this can be found by using Tek-Tips "Search" feature. The remaining can be obtained by posting back in this thread... "I exhausted my resources. Somebody help me find an answer."

VCA.gif
 
you could just put your app in windows start menu under programs under startup ?
that would work
is that what you want to know?
or do you want to open a app from your vb app???
 
No it won't be running any other apps. It will just check the date, do some math, then either shutdown or show a message. Putting it in the windows start menu, that would be done in the package and deploy? Do you know the macro for that?
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top