How to Create Internet Shortcut on your Desktop
Posted on January 5, 2009
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 'Internet - How to Create Internet Shortcut on your Desktop Option Explicit Private Sub Form_Load() Dim URLFile As String, URLTarget As String Dim MyFileNum As Integer URLFile = "C:\Windows\Desktop\CodeItBetter.url" URLTarget = "http://www.codeitbetter.com" MyFileNum = FreeFile Open URLFile For Output As MyFileNum Print #MyFileNum, "[InternetShortcut]" Print #MyFileNum, "URL=" & URLTarget Close MyFileNum End Sub |