# Desktop_CreateWebLink

> Creates a shortcut on in a specified location.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/desktop-functions/desktop-createweblink/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Creates a shortcut on in a specified location

### Syntax

Desktop_CreateWebLink(sShortcutFileName, sTargetURL, sLocation)

### Parameters

#### sShortcutFileName (String)

Name of the .Url file (e.g. Google.url)

#### sTargetUrl (String)

The url for the web page (e.g. www.google.com)

#### sLocation (String)

You can use [Special folders Constants](/capainstaller/vb-scripting-library/addendum/special-folders-constants/) together with a path

### Return value

Boolean, TRUE if function completed successfully.

### Example

**VBScript**

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

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Desktop functions](/capainstaller/vb-scripting-library/desktop-functions/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
