Welcome to Dream.In.Code
Become a VB Expert!

Join 137,228 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,899 people online right now. Registration is fast and FREE... Join Now!




Running an application when windows starts

 
Reply to this topicStart new topic

Running an application when windows starts

jincymz
19 Mar, 2007 - 10:35 PM
Post #1

New D.I.C Head
*

Joined: 19 Mar, 2007
Posts: 1


My Contributions
Hi,

I have made an application to execute when windows starts.I did it by using the code

CODE
Dim regKey As RegistryKey
regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True)
regKey.SetValue("MyExecutable", "C:\MyExecutable.exe")
regKey.Close()

which i get it from this site itself.My qn is i just want to install this application to another machine.how can i make this application to run in system tray in that machine.The path will be set only when we run i right?I am just a beginner so pls help me...
User is offlineProfile CardPM
+Quote Post

jjuneau
RE: Running An Application When Windows Starts
20 Mar, 2007 - 03:09 PM
Post #2

New D.I.C Head
*

Joined: 15 Feb, 2007
Posts: 16


My Contributions
What are you trying to do? Make a program like BackOrifice?
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: Running An Application When Windows Starts
20 Mar, 2007 - 10:47 PM
Post #3

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 3,914



Thanked: 34 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
If you include it in a procedure that is called when a program is loaded, the registry code will be executed as well.
As far as the System tray part goes, you'll need to use separate API Functions and not mere Registry Additions.

Adding Programs to Startup is a very common.
That doesn't make it a Trojan.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 03:05PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month