It's about how to make ur program startup with windows;
well let's begin;
i'll deal with registry as u know u can make ur program startup with windows by putting some values in the registry let's say it is :
HKCU\Software\Microsoft\Windows\CurrentVersion\Run
so i'm going make a function add a value of my program to this key so my proggy will startup with windows
Set reg = CreateObject("wscript.shell")
reg.regwrite ("HKCU\Software\Microsoft\Windows\CurrentVersion\Run\Myprogram"), App.path & "\" & App.EXEName
MsgBox "The program will start everytime you start windows", vbOKOnly + vbInformation
Explanation;
first I make an object called reg which is wscript.shell
then i wrote the value of my program (my app path and app exe name) into the key which is responsible for making programs start with windows which is
HKCU\Software\Microsoft\Windows\CurrentVersion\Run\Myprogram
then i made a msgbox to inform u about the changes
Hint:
u can delete the program from the startup by using :
reg.regdelete("HKCU\Software\Microsoft\Windows\CurrentVersion\Run\Myprogram")
The End>>>
this is me Zizooooo
any question i'm here


Sign In
Create Account


Back to top









