xp 的 Win32_MountPoint 替代品
xp 上是否有 Win32_MountPoint WMI 类的替代方案?
Is there any alternative for Win32_MountPoint WMI class that is available on xp?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想您实际上已经意识到了这样一个事实:
Win32_MointPoint
只是Win32_Volume
(因此在 Windows XP 上也不可用)和Win32_Directory 之间的关联类
。因此,一个更有效的问题实际上是“是否有其他方法可以获取目录的卷?”。您可能可以使用
Win32_LogicalDiskRootDirectory
与Win32_Directory
实例关联来实现相同的目的,查找目录所在的Win32_LogicalDisk
实例。Win32_LogicalDisk
不提供Win32_Volume
提供的所有信息(例如DirtyBitSet
),但提供大部分信息。您可以考虑更改您的问题以陈述您实际想要实现的目标。
I guess you're actually aware of the fact, that
Win32_MointPoint
is just an association class betweenWin32_Volume
(which consequently is also not available on Windows XP) andWin32_Directory
. So a more valid question would actually be "is there an alternative for getting the volume of a directory?".You could probably achieve the same using the
Win32_LogicalDiskRootDirectory
association with aWin32_Directory
instance, looking up theWin32_LogicalDisk
instance that a directory is located on.Win32_LogicalDisk
does not provide all the information thatWin32_Volume
does (for exampleDirtyBitSet
), but most of it.You might consider changing your question to state what you're actually trying to achieve.