how do you make shortcuts on the desktop
Printable View
how do you make shortcuts on the desktop
This is a nice CodeBank example using VB.
And here is one using Windows Scripting Host.
and here is one thats really short:
VB Code:
Private Declare Function fCreateShellLink Lib "VB5STKIT.DLL" _ (ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, _ ByVal lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long dim result as long Result = fCreateShellLink("..\..\Desktop", ShortCutName, App.Path & "\exename.exe", (properties))
you can delete the , properties, its for adding properties to the shortcut
:wave:
whenever i try to run that i get the error
cannont find "VB5STKIT.DLL"
VB5STKIT.DLL is only supplied with VB5.
Heres the original reference.
what does it have to be for vb 6
The example in post #2. ;)
really, i would prefer to use code i understand
and the example in post 2 dosent work
The example in #3 is easier. ;)
the example in post 3 does
use google to find the dll man...