[VBScript] 問一下這要怎麼改

看板Visual_Basic作者 (哇120)時間17年前 (2007/08/23 00:44), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
以下VB語法 VBSBegin Set obj = GetObject("winmgmts:\\.\root\cimv2") Set IPConfigSet = obj.ExecQuery ("Select IPAddress from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE") For Each IPConfig in IPConfigSet If Not IsNull(IPConfig.IPAddress) Then For i=LBound(IPConfig.IPAddress) to UBound(IPConfig.IPAddress) add = IPConfig.IPAddress(i) MessageBox(add) Next End If Next VBSEnd 我用VBScript不能執行 請問一下這要怎麼解決 想問一個觀念 是不是都可以用winmgmts:\\.\root\cimv2 來找尋XP內建的資料表 像是 process table ,IP table ,operatorsystem table,printer table (以上是自己上網查的結果) 並且列出清單阿? 這種方式可以用C/C++寫嗎? 之前有google到可以用php.... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.203.42.41 wa120:轉錄至看板 C_and_CPP 08/24 22:16
文章代碼(AID): #16p6Vj7j (Visual_Basic)
文章代碼(AID): #16p6Vj7j (Visual_Basic)