调用wmi的相关问题
用vbscript 调用wmi,在xp客户端可以,在98里就不行.
就把它用vb写成dll文件调用,内容如下:
Public Function cinfo() As String
strComputer = "."
set wbemServices = GetObject("winmgmts:\\" & strComputer)
Set wbemobjectset = wbemServices.InstancesOf("Win32_processor")
For Each wbemobject In wbemobjectset
cinfo = wbemobject.currentclockspeed
Next
End Function
上面代码在vb里运行没问题,生成dll给asp调用就不行.
请问如何改?或什么条件下98也能用..