明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: wltools

读取硬盘PNPDeviceID号,请帮助测试

  [复制链接]
 楼主| 发表于 2007-5-31 09:20:00 | 显示全部楼层

我没有使用Win32_PhysicalMedia,是因为它的

Requirements

ClientRequires Windows Vista or Windows XP.
ServerRequires Windows Server "Longhorn" or Windows Server 2003.
MOF

Declared in Wmipcima.mof.

DLLRequires Wmipcima.dll.
Namespace

Defined in \root\cimv2.

我希望能在2000下正常用。

发表于 2007-5-31 16:02:00 | 显示全部楼层
怪不得我在2000下老是用不起来
发表于 2007-5-31 17:16:00 | 显示全部楼层
(setq No (min No (1- (Length lis))))
有错误,No没有付值
 楼主| 发表于 2007-6-1 17:52:00 | 显示全部楼层

抱歉,我疏忽了,是你想要的第几个驱动器,

第一个设为 0

2000下装 WMI 后也许可以用 Win32_PhysicalMedia,没仔细查资料,如果要用,自己核实一下吧。

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-6-20 15:04 , Processed in 0.166373 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表