作者wa120 (哇120)
看板Visual_Basic
标题[VBScript] 问一下这要怎麽改
时间Thu Aug 23 00:44:25 2007
以下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