vbs在网页中显示服务_vbs教程-查字典教程网
vbs在网页中显示服务
vbs在网页中显示服务
发布时间:2016-12-28 来源:查字典编辑
摘要:strComputer="."SetobjExplorer=WScript.CreateObject("InternetExplorer.A...

strComputer = "."

Set objExplorer = WScript.CreateObject("InternetExplorer.Application")

objExplorer.Navigate "about:blank"

objExplorer.ToolBar = 0

objExplorer.StatusBar = 0

objExplorer.Visible = 1

Set objWMIService = GetObject _

("winmgmts:" & strComputer & "rootcimv2")

Set colItems = objWMIService.ExecQuery _

("SELECT * FROM Win32_Service")

For Each objItem in colItems

strHTML = strHTML & objItem.DisplayName & " = " & objItem.State & "<BR>"

Next

objExplorer.Document.Body.InnerHTML = strHTML

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新vbs学习
    热门vbs学习
    脚本专栏子分类