473,414 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Programmatically runnung an application on windows startup

How can I programmatically start a windows application when windows
loads. Can I get the code to do that, I'd rather do it with code than
with the setup & deployment wizard.
I'd also like to be able to set it up from the windows enviroment
(getting an application to load at windows startup)

Jun 14 '06 #1
3 7156
Hello New,

Put shortcut into Startup folder

NU> How can I programmatically start a windows application when windows
NU> loads. Can I get the code to do that, I'd rather do it with code
NU> than
NU> with the setup & deployment wizard.
NU> I'd also like to be able to set it up from the windows enviroment
NU> (getting an application to load at windows startup)
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jun 14 '06 #2
New user wrote:
How can I programmatically start a windows application when windows
loads. Can I get the code to do that, I'd rather do it with code than
with the setup & deployment wizard.
I'd also like to be able to set it up from the windows enviroment
(getting an application to load at windows startup)


There are several ways to get an application to run at startup. One option
is to place a shortcut to the exe in the Startup folder, the location of
which varies depending on which version of Windows and whether you want it
to start for the current user or all users. You can also place the path to
the exe in the registry at either
HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Run or
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run, again
depending on whether you want your program to run automatically at startup
for the current user or for all users.
--
Tom Porterfield

Jun 15 '06 #3

Tom Porterfield wrote:
New user wrote:
How can I programmatically start a windows application when windows
loads. Can I get the code to do that, I'd rather do it with code than
with the setup & deployment wizard.
I'd also like to be able to set it up from the windows enviroment
(getting an application to load at windows startup)


There are several ways to get an application to run at startup. One option
is to place a shortcut to the exe in the Startup folder, the location of
which varies depending on which version of Windows and whether you want it
to start for the current user or all users. You can also place the path to
the exe in the registry at either
HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Run or
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run, again
depending on whether you want your program to run automatically at startup
for the current user or for all users.
--
Tom Porterfield


Jun 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Drydo | last post by:
In short, is it possible to swap/change the display output of a laptop to a CRT programmatically? The scenario is that we have a laptop that at the startup of a specific application would...
4
by: Keith | last post by:
I'm in the same boat as the fellow who posted this message back in August: Title : Windows Service, How does one make a service "fail" properly? Author : Ross Bennett Group :...
6
by: billr | last post by:
I have developed a small API for taking care of a lot of boiler plate stuff in a multi formed windows application, for example setting up a messaging thread framework. New Forms, in the...
9
by: jeff | last post by:
Hi All. I realize that when my Deployed winforms application starts, Windows needs to load the .net 2 framework before control is given to my application.... Is there anyway to either ... -...
13
by: Garry | last post by:
Why is it that my installation od vs2005 will not accept My.Application.OpenForms saying that it is not part of My.Application??? Dim frm As Form For Each frm In My.Application.OpenForms Next...
10
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi In my app I have a SplashScreen, a login form and a main form. On launching the app, I'd like to show the SplashScreen while reading config files and attempting a database connection. I show...
3
by: Prabu | last post by:
Hi, I am programming for a small computer device which is running on Windows XP. I need to disable the popup blocker and enable the "Allow script initiated windows without size or position...
3
by: =?Utf-8?B?RVF1QWw=?= | last post by:
Hi, We have an application developed in VC2005 with mixed code, primarily C++ but using a C# dll for database access (DBUploader), the dll exposes a C++ interface. We are experiencing...
1
by: BobLewiston | last post by:
I tried to compile a Windows Forms Application in Visual C# 2008 Express with this source code from the CSharpSchool tutorial at Programmer's Heaven:using System; using System.Windows.Forms; using...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.