-
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
-
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"