Results 1 to 2 of 2

Thread: Startup - Urgent

  1. #1

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268

    Exclamation

    I need to know how to copy a program into startup and when I've finished remove it. I need it to be in startup and not in some sort of registry thing because it will run after IE setup restarts the comp and IE may need to make some changes before I can run it.

    Someone please help me!

    Thanks
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

  2. #2
    Guest
    Try creating a shortcut in the startup folder.

    Code:
    'In Visual Basic 5.0, change Stkit432.dll in the following
    'statement to Vb5stkit.dll.  Stkit432.dll is for Visual Basic 4.0
    
    Private Declare Function fCreateShellLink Lib "STKIT432.DLL" (ByVal
    lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As
    String, ByVal lpstrLinkArgs As String) As Long
    
    lReturn = fCreateShellLink("\Startup", "MyProgram", _
        "c:\myprog\prog.exe", "")
    
    And to remove it:
    
    Kill "C:\WINDOWS\Start Menu\Programs\StartUp\Myprogram.lnk"

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