如何列出物理磁盘? [英] How to list physical disks?
本文介绍了如何列出物理磁盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何列出物理磁盘的窗户?
为了获得\\。\\ PhysicalDrive0可用。
解决方案
WMIC 是一个非常完整的工具
WMIC diskdrive列表
提供了(太多)详细列表,例如
少信息
WMIC diskdrive简短列表
塞巴斯蒂安Godelet 提到<一个href=\"http://stackoverflow.com/questions/327718/how-to-list-physical-disks/327724#comment18466111_327724\">in该评论:
在C:
块引用>系统(WMIC diskdrive表);
或者使用PowerShell:
GET-WmiObject Win32_DiskDrive
How to list physical disks in windows? In order to obtain a list of "\.\PhysicalDrive0" available.
解决方案wmic is a very complete tool
wmic diskdrive list
provide a (too much) detailed list, for instance
for less info
wmic diskdrive list brief
Sebastian Godelet mentions in the comments:
In C:
system("wmic diskdrive list");
Or with PowerShell:
Get-WmiObject Win32_DiskDrive
这篇关于如何列出物理磁盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文