MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Public Function CreateShortCut(ByVal strName As String, ByVal strTargetDirectory As String, ByVal strTargetPath As String, ByVal strWorkingDir As String, ByVal strIconFile As String, ByVal strBatch As String) As clsResult Dim wshShell As New WshShell Dim desktop As String = My.Computer.FileSystem.SpecialDirectories.Desktop 'Dim desktop As String = wshShell.SpecialFolders.Item("Desktop").ToString() Dim shortcut As IWshShortcut = CType(wshShell.CreateShortcut(desktop & "\" & strName.ToString & ".lnk"), IWshShortcut) With shortcut .TargetPath = strTargetPath.Replace(Chr(34), String.Empty) .WorkingDirectory = strWorkingDir .IconLocation = strIconFile .WindowStyle = 1 .Description = "Ripteq Automation Task for Batch: " & strBatch .Save() End With End Function
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.