anyone know how to create a short cut to my program in the startup folder, and be able to remove it, using vb code.
my prog is going to be like the windows welcome screen at first boot.
cheers
matt
Printable View
anyone know how to create a short cut to my program in the startup folder, and be able to remove it, using vb code.
my prog is going to be like the windows welcome screen at first boot.
cheers
matt
you could add a link to the registry in this -->
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
key
like a string called "Myapp" with the location of ur program as its value.
or you could create a shortcut, in the startup folder using the api function
or just go toCode:Declare Function fCreateShellLink Lib "STKIT432.DLL" _
(ByVal lpstrFolderName as String, ByVal lpstrLinkName _
as String, ByVal lpstrLinkPath as String, ByVal _
lpstrLinkArgs as String) As Long
shortcut tutorial
good luck :)
[Edited by da_silvy on 04-30-2000 at 10:04 PM]