这段vbs代码如何嵌入asp中?
有以下一段代码strComputer = "."
Set wbemServices = Getobject("winmgmts:\\" & strComputer)
Set wbemObjectSet = wbemServices.InstancesOf("Win32_LogicalMemoryConfiguration")
For Each wbemObject In wbemObjectSet
WScript.Echo "Total Physical Memory (kb): " & wbemObject.TotalPhysicalMemory
Next
这断代码在储存为.vbs文件后可以运行,但是嵌在.asp文件中报错,说找不到wbemServices的定义,
是说要引用什么头文件吗?
谢谢!