close brwoser windows

This commit is contained in:
Mario Fetka 2015-11-18 22:10:07 +01:00
parent 1c64bb9de2
commit 2c313497a9

View File

@ -5,7 +5,7 @@ Sub KillBrowsers()
'Declare variables
Dim i
Dim wmiSvc,WQL,Processes,Process
Dim arrBrowserProcesses(7)
Dim arrBrowserProcesses(8)
'Initialize variables
arrBrowserProcesses(0)="iexplore.exe"
@ -15,6 +15,7 @@ Sub KillBrowsers()
arrBrowserProcesses(4)="opera.exe"
arrBrowserProcesses(5)="iron.exe"
arrBrowserProcesses(6)="MicrosoftEdge.exe"
arrBrowserProcesses(7)="FreeStudioManager.exe"
Set wmiSvc = GetObject("winmgmts:\\.\root\cimv2")
For i = 0 To UBound(arrBrowserProcesses)