vbs在网页中显示服务
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 & "\root\cimv2")
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教程:函数-CSng 函数
栏 目:VBS
下一篇:VBS编程教程 (第4篇)
本文标题:vbs在网页中显示服务
本文地址:http://www.codeinn.net/misctech/45013.html