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.
Option Explicit
Dim strComputer, strPath, strAdditionalPath
Dim objWMIService, objItem
Dim colItems
strComputer = "."
strAdditionalPath = "C:\"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_Environment Where Name = 'Path'")
For Each objItem in colItems
strPath = objItem.VariableValue
If InStr(strPath,";" & strAdditionalPath & ";") = 0 Then
strPath = strPath & ";" & strAdditionalPath & ";"
objItem.VariableValue = strPath
objItem.Put_
End If
Next