vbs在網(wǎng)頁中顯示服務(wù)
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
相關(guān)文章
利用VBS實(shí)現(xiàn)顯示系統(tǒng)服務(wù)列表
顯示服務(wù)列表的方法有很多,在接下來的文章中為大家介紹下利用VBS是如何實(shí)現(xiàn)的,感興趣的朋友不要錯過2013-11-11VBS 獲取外網(wǎng)IP的實(shí)現(xiàn)代碼
這篇文章主要介紹了用vbs獲取外網(wǎng)的ip地址,通過用vbs訪問ip顯示頁面的返回值實(shí)現(xiàn),需要的朋友可以參考下2013-07-07