Set objShell = WScript.CreateObject('WScript.Shell') 'start log hotspot profiles to C:\profiles.log Set objFSO = CreateObject('Scripting.FileSystemObject') ObjShell.ShellExecute 'wscript.exe', '''' & _ Set ObjShell = CreateObject('Shell.Application')
Set WshShell = WScript.CreateObject('WScript.Shell') Code: Select all 'Creates new instance of script as Administrator