Jump to content

Make ur program startup with windows

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Zizooooo

Zizooooo

    Newbie

  • Members
  • PipPip
  • 15 posts
Hi everybody , well this is my first thread I hope u will enjoy it ......

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


#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Cool first post, +rep!

#3
Doobler

Doobler

    Newbie

  • Members
  • Pip
  • 1 posts
thanks this helped, +rep!

#4
Zizooooo

Zizooooo

    Newbie

  • Members
  • PipPip
  • 15 posts
Thanks for reply......