Skip to content

Desktop_CreateWebLink

Creates an internet shortcut (.url file) in a specified folder. If the folder doesn’t exist, the function creates it.

Desktop_CreateWebLink(sShortcutFileName, sTargetURL, sLocation)

Name of the .url file (e.g. Google.url). If the name doesn’t end with .url, the function adds it.

The URL for the web page, including https:// (e.g. https://www.google.com)

You can use Special folders Constants together with a path

Boolean, TRUE if function completed successfully.

'Creates a web link on all users desktop to capainstaller.com
If bStatus Then bStatus=Desktop_CreateWebLink("CapaInstaller", "https://www.capainstaller.com", Folder_AllUsersDesktop)

Scripting Guidelines

Desktop functions Constants Package Property Variables