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.
set objFSO = CreateObject("Scripting.FileSystemObject")
set objNetwork = CreateObject("WScript.Network")
strUser = objNetwork.Username
strShortcut = "C:\path\to\shortcut.lnk"
strMyDocuments = "C:\Documents and Settings\" & strUser & "My Documents"
objFSO.CopyFile strShortcut, strMyDocuments, true
Set WSHShell = CreateObject("WScript.Shell")
Set FSO = WScript.CreateObject("Scripting.FileSystemObject")
strDoc = WshShell.SpecialFolders("MyDocuments")
strShortcut = strDoc & "\P-Drive.lnk"
wscript.echo strShortcut
If Not FSO.FileExists(strShortcut) Then
Set Link = WshShell.CreateShortcut(strShortcut)
Link.TargetPath = "P:\"
Link.IconLocation = "P:\SpecialIcon.ico, 0"
Link.Description = "P Drive"
Link.Save
End If
Set WSHShell = CreateObject("WScript.Shell")
Set FSO = WScript.CreateObject("Scripting.FileSystemObject")
strDoc = WshShell.SpecialFolders("MyDocuments")
strShortcut = strDoc & "\P-Drive.lnk"
If FSO.FileExists(strShortcut) Then
[red][b]FSO.DeleteFile (strShortcut)[/b][/red]
End If