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

Related posts:

  1. How to Add a shortcut in current users Desktop, Programs menu and Startup folder
  2. How to add Bookmark to Favorites folder
  3. How to list URL of all open Internet Explorer and Windows Explorer windows
  4. How to Download file from Internet
  5. How to Cascade Internet Explorer windows on the desktop
  6. How to get the Last Modified Date of a Web Page
  7. How to Change Internet Explorer Start Page and Main Window Title
  8. How to I create a text file from part of another text file (for given line numbers like Line No. 2 to 7)
  9. How to open a new window of Internet Explorer and browse to a specific file
  10. How to Create an Error Log file

Filed under: Internet Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.