问题描述
嗨
有没有办法在没有
的(win32)电脑上使用WMI列出分区?
干杯,克劳德
也许这会起作用(我跳过了A:和B:,但你可以包括它们,如果你想要用它们中的某些东西来抓住软盘驱动器)。 ''xxx''只是为了获得一个完整的目录'无用的文本'
。如果xxx恰好被定义为
它不会伤害任何东西。它不会像使用其中一个
win32 api软件包那样快速获取GetLogicalDriveStrings,但这适用于我的NT4:
(显然有错误消息)转到stderr,所以stdout得到''''使if失败)
[''C:'',''D:'',''E:'',''V:'',' 'W:'']
问候,
Bengt Richter
不是这个回答你的问题,但为什么_don''t_你
想要使用WMI?
TJG
不是这个回答了你的问题,但是为什么_don''t_你想要使用WMI?
TJG
Hi
Is there any way of listing partitions on a (win32) computer without
using WMI?
Cheers, Claude
Maybe this will work (I skipped A: and B:, but you can include them if
you want to catch floppy drives with something in them). The ''xxx'' is just so as
not to get a full directory''s worth of useless text. If xxx happens to be defined
it doesn''t hurt anything. It''s not going to be as fast as using one of the
win32 api packages to get at GetLogicalDriveStrings, but this works on my NT4:
(error messages apparently go to stderr, so stdout gets '''' which makes the if fail)
[''C:'', ''D:'', ''E:'', ''V:'', ''W:'']
Regards,
Bengt Richter
Not that this answers your question, but why _don''t_ you
want to use WMI?
TJG
Not that this answers your question, but why _don''t_ you
want to use WMI?
TJG
这篇关于列出分区(在win32上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!