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