Results 1 to 6 of 6

Thread: Stary a project without paste on startup

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Location
    Bangladesh
    Posts
    106

    Question Stary a project without paste on startup

    How I can start a program when the computer will start? But no one can see the program on start up. is there any way to start a program without keep it on start up. (VB Project)

    Thanking you
    Rummy

  2. #2
    Hyperactive Member abhid's Avatar
    Join Date
    Nov 2001
    Location
    3rd rock from the sun
    Posts
    467
    you must add your exe file path in following registry key
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    This wont show the path in startup but it will run your program at startup.

  3. #3
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425
    or in Windows 95/98 you can set it in your Win.ini file...

    For example:

    LOAD=C:\App.exe

    But I would also recomment the reg key...
    "Experience is something you don't get until just after you need it."

  4. #4
    Member
    Join Date
    Sep 2002
    Location
    china
    Posts
    55
    SaveSettingString HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", "yourappname", App.Path & "\yourapp.exe"

  5. #5
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878
    Originally posted by soothu kusu
    SaveSettingString HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", "yourappname", App.Path & "\yourapp.exe"
    There is no VB function "SaveSettingString". Do you have the declarations and code for this routine? I assume it uses complex registry APIs.

    The VB SaveSetting command wil always write to sub-keys in HKey_Current_User\Software\VB and VBA Program Settings. So it won't look in the registry at the correct point.

  6. #6
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    425
    Correct...

    Search http://www.vbworld.com for registry saving... I have my API from there...
    "Experience is something you don't get until just after you need it."

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