CodeItBetter Programming Another VB Programming Blog

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
Filed under: Internet Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.