![]() |
系统信息对象。用于采集系统硬件、软件信息
NetBox.SysInfo[.collection|method](variable)
Count | 返回一个对象中的项目数,只读属性 |
Key | 根据下标取得关键字的键值,只读属性 |
Add | 向系统信息中添加自己的信息 |
Exists | 如果对象中存在所指定的关键字则返回 true,否则返回 false |
Save | 转储对象中的内容到指定的目标 |
可是使用 NetBox.SysInfo 查询当前运行系统的硬件、软件信息,NetBox 版本信息,软件发布指纹等信息。
下面的代码将全部的系统信息输出到控制台。
Set si = NetBox.SysInfo For each strKey In si Shell.Console.WriteLine strKey & ": " & si(strKey) Next
此程序运行结果如下:
OS_Family: Windows NT OS_Platform: Windows XP Professional OS_Version: 5.1 OS_ServicePack: Service Pack 1 OS_BuildNumber: 2600 IE_Version: 6.0.2800.1106 IE_UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Win32) ADO_Version: 2.71.9030.0 System_Language: Chinese (PRC) System_Name: LION-CORP System_User: lion TimeZone_Name: China Standard Time TimeZone: 8 IP_0: 127.0.0.1 IP_1: 192.168.100.65 Screen_Width: 1024 Screen_Height: 768 Screen_Color: 32 bit CPU_Family: AuthenticAMD CPU_Name: AMD Athlon(tm) XP 1700+ CPU_Serial: 00000662-00000000-00000000 CPU_Number: 1 RAM: 448M NIC_0: 00:07:95:EE:DA:54 IDE_0: 3HS51G8N APP_Version: NetBox Version 2.5 Build 4100 APP_Created: May 26 2003, 09:12:54 APP_Info: 1BB2B2F81E6388167FC7F315D93AEB42