Results 1 to 6 of 6

Thread: Autorun...

  1. #1

    Thread Starter
    Member
    Join Date
    May 2002
    Location
    Pittsburgh, PA
    Posts
    42

    Autorun...

    Is there a way to make a visual basic application load when windows loads through using code? Thanks.

  2. #2
    Stiletto
    Guest
    Yes. You can write to the registry where windows opens applications on load

  3. #3

    Thread Starter
    Member
    Join Date
    May 2002
    Location
    Pittsburgh, PA
    Posts
    42
    and how would you go about doing that? =)

  4. #4
    Stiletto
    Guest
    Well...I cant find the registry path right, but you can write to the registry to the run key which holds all the progrems that lods with windows with API calls

  5. #5
    Stiletto
    Guest
    ok I've found it. The location in the registry to load application when windows loads is this:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run.
    To write to that locations, add the module ive attached
    And call it like this:
    VB Code:
    1. Dim sKeyPath as String
    2. sKeyPath = "Software\Microsoft\Windows\CurrentVersion\Run"
    3. Call RegistrySetKeyValue(rrkHKeyLocalMachine, sKeyPath , "Your-App-Name", App.Path & "\" & "AppEXEFile.exe", rrkRegSZ)

  6. #6
    Stiletto
    Guest
    Forgot the module:
    Attached Files Attached Files

Posting Permissions

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



Click Here to Expand Forum to Full Width