App VB to start when Windows is started..

Fermé
rachid - 30 mars 2004 à 12:04
 Diresm - 10 sept. 2007 à 22:20
hallo..
I want to write a program that will register itself in the Windows registry to start when Windows is started. The program needs to restart if it’s killed or the process is killed.

Thank you for your assistance
A voir également:

1 réponse

Hello Rachid you must create Key In this way :
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\

And after that, write string in this key the way of your application

Ex: "c:\Program Files\YOUR APPLICATION\NAME of APPLICATION.exe"

You're free to name the key Like you want.

In VB i don't know what is the name of procedure... It's something like

RegistryCreateKey("NameOfKey","c:\Program Files\YOUR APPLICATION\NAME of APPLICATION.exe")

OR

RegistryWriteKey(....)
0