473,473 Members | 4,176 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

To set StartUp file in the registry can we use other path ??

30 New Member
Hi All,


To run my .exe file on startup I am using the registry.

So, Is the only path that we can use is "HKEY_CURRENT_USER\ Software\Microsoft\Windows\CurrentVersion\Run"?

Or can we use any other path ?

Example:

HKEY_CURRENT_USER\ Software\Microsoft\Windows\CurrentVersion\MyAPP

or

HKEY_CURRENT_USER\ Software\Microsoft\Windows\CurrentVersion\MyAP1

I tried the above examples and its not working. Is there any way that we can use other folder name instead of using RUN at last?

I want to change alteast RUN and keep MYAPP at last, Please let me know if its possible.

Thankz.

Kinnu.
Aug 23 '07 #1
2 1365
Killer42
8,435 Recognized Expert Expert
I doubt it. Windows has to have some way to know where to look when starting up. So it looks in the Load and Run entries in the registry. If you can hide the entries away anywhere in the registry, then how could anyone ever know what is loaded at startup?

You could try simply putting a shortcut in the user's Startup group, I suppose.

This is really a question for the Windows forum rather than Visual Basic, I'd say. I'll move it over there.
Aug 24 '07 #2
bartonc
6,596 Recognized Expert Expert
<snip>If you can hide the entries away anywhere in the registry, then how could anyone ever know what is loaded at startup?<snip>
Which may be the point of this exercise... Not a good idea, practice, nor, even a good idea to attempt.
Aug 24 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Wally | last post by:
Hi all. I've wrote, using VB.NET a windows service that starts automatically at power ON. It works well. Now I need that my service write a key in the registry for running an application as soon...
4
by: acemann7 | last post by:
Windows 2000 udb v 7.2 Got the latest fixpak 13 Applied it. Still can't get a single java sp to run. I used to get reason "2"... now reason "0" - reason 0 is not even documented. I point...
4
by: Didymus | last post by:
Hi everyone, How would I adjust the following ConnectionString to point to the applications installed path? === Provider=Microsoft.Jet.OLEDB.4.0;Password="";User ID=Admin;Data Source=SOME...
1
by: Locke Nash Cole | last post by:
I'm making a utility similar to MSConfig, I've found it easy enough to obtain the startup items from the registry for the current user and local machine... but what about the Startup folder on the...
6
by: Pyerwoh | last post by:
Greetings, I'm trying to have an application resume after a reboot, by making an entry into the Run registry key ("SOFTWARE\Microsoft\Windows\CurrentVersion\Run") . This works great, and my...
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 ... -...
3
by: lukecooley | last post by:
I am new to coding in vb.net and I am trying to add a registry value in the runonce key. The key is added correctly, as I can see it when going directly into the registry after executing my code,...
4
by: ApexData | last post by:
Hello I would like to use a custom icon at startup. Currently, I have defined the icon in the Access Startup option. This works fine, however, it requires the icon to be located with the...
2
by: SMALLp | last post by:
Hy. I create simple application. Yust an windows and "compile" it with py2exe. I add registry value reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v MyApp /t REG_SZ /d...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.