[VBScript] 問一下這要怎麼改
以下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
討論串 (同標題文章)