VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Create a Internet Shorcut on Anyone's Computer


Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (5 Votes)

This code will create an internet shortcut on someone's computer. All you have to do it call it with a path and hyperlink!

Inputs
Path- path should be complete with filename ending in url (e.g. "C:\Shortcut.url") Hyperlink- this is the complete website address
Assumes
So easy I think you can handle it.

Rate Create a Internet Shorcut on Anyone's Computer

Private Sub CreateHyperlink(Path As String, Hyperlink as String)
  Open Path For Output As #1 'open file access
  Print #1, "[Internetshortcut]" 'print on first line
  Print #1, "URL=" & Hyperlink 'print url on second line
  Close #1 'close it
End Sub

Download this snippet    Add to My Saved Code

Create a Internet Shorcut on Anyone's Computer Comments

No comments have been posted about Create a Internet Shorcut on Anyone's Computer. Why not be the first to post a comment about Create a Internet Shorcut on Anyone's Computer.

Post your comment

Subject:
Message:
0/1000 characters