Desktop_CreateWebLink
Description
Section titled “Description”Creates an internet shortcut (.url file) in a specified folder. If the folder doesn’t exist, the function creates it.
Syntax
Section titled “Syntax”Desktop_CreateWebLink(sShortcutFileName, sTargetURL, sLocation)
Parameters
Section titled “Parameters”sShortcutFileName (String)
Section titled “sShortcutFileName (String)”Name of the .url file (e.g. Google.url). If the name doesn’t end with .url, the function adds it.
sTargetUrl (String)
Section titled “sTargetUrl (String)”The URL for the web page, including https:// (e.g. https://www.google.com)
sLocation (String)
Section titled “sLocation (String)”You can use Special folders Constants together with a path
Return value
Section titled “Return value”Boolean, TRUE if function completed successfully.
Example
Section titled “Example”'Creates a web link on all users desktop to capainstaller.comIf bStatus Then bStatus=Desktop_CreateWebLink("CapaInstaller", "https://www.capainstaller.com", Folder_AllUsersDesktop)