Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub CreateShortcut()
'Modified from:
'The Create Shortcut command truncates the source path folder names to eight characters
'[URL unfurl="true"]http://support.microsoft.com/kb/263324#appliesto[/URL]
Set WshShell = CreateObject("WScript.Shell")
Dim ret
'subst a drive to make the mapping work
ret = WshShell.Run("cmd /c subst j: c:\", 0, True)
Set oShellLink = WshShell.CreateShortcut("d:\" & "\Long filename Shortcut .lnk")
oShellLink.TargetPath = "j:\my long directory\myapplication.exe"
oShellLink.WindowStyle = 1
'Icon, if required
oShellLink.IconLocation = "C:\Program Files\Microsoft Office\Office\MSAccess.exe, 0"
oShellLink.Hotkey = "CTRL+SHIFT+F"
oShellLink.Description = "Long Filename Shortcut"
'This will overwrite the existing Icon
oShellLink.Save
'remove the subst
ret = WshShell.Run("cmd /c subst j: /d", 0, True)
End Sub