Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.
set s=getobject("winmgmts:root\cimv2") sQuery="select * from win32_process where name='iexplore.exe'" set q=s.execquery(sQuery) If q.Count > 0 Then msgbox "Maintenance: Close Internet Explorer bla bla bla." Do until q.count=0 wscript.sleep 5000 set q=s.execquery(sQuery) msgbox "still open please close..." Loop msgbox "Internet Explorer closed, thanks. Starting to update, have a nice day!" Set WshShell = WScript.CreateObject("Wscript.Shell") Set objFSO = CreateObject("Scripting.FileSystemObject") end if
Join the community of 500,000 technology professionals and ask your questions.