Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Try WriteShortcut("http://www.mylighthousecove-fl.org/", IO.Path.Combine _ (My.Computer.FileSystem.SpecialDirectories.Desktop, "LHC Blog.url")) Catch ''''''''''''''Note '''''''''''Errors out here End Try End Sub Sub WriteShortcut(ByVal url As String, ByVal filename As String) Try My.Computer.FileSystem.WriteAllText(filename,String.Format _ ("InternetShortcut]{0}URL={1}{0}",vbCrLf, url), False) Catch End Try End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)