+ Reply to Thread
Results 1 to 4 of 4

Thread: Make ur program startup with windows

  1. #1
    Zizooooo is offline Newbie
    Join Date
    Jul 2009
    Posts
    14
    Rep Power
    0

    Make ur program startup with windows

    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
    Code:
    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\Cur rentVersion\Run\Myprogram")

    The End>>>

    this is me Zizooooo

    any question i'm here

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: Make ur program startup with windows

    Cool first post, +rep!

  4. #3
    Doobler is offline Newbie
    Join Date
    Dec 2008
    Posts
    1
    Rep Power
    0

    Re: Make ur program startup with windows

    thanks this helped, +rep!

  5. #4
    Zizooooo is offline Newbie
    Join Date
    Jul 2009
    Posts
    14
    Rep Power
    0

    Re: Make ur program startup with windows

    Thanks for reply......

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 03-31-2011, 06:54 PM
  2. Replies: 3
    Last Post: 11-08-2010, 06:52 AM
  3. windows ddk - i want to use c to make drivers!
    By innerLOL in forum General Programming
    Replies: 0
    Last Post: 01-14-2010, 01:02 PM
  4. How to add My program to Startup ?
    By kresh7 in forum Visual Basic Programming
    Replies: 52
    Last Post: 08-18-2009, 06:29 PM
  5. return to last program on startup - DELPHI 6
    By vern in forum Pascal and Delphi
    Replies: 4
    Last Post: 07-11-2009, 04:31 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts