Get Drive Volume information
16 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
Is there an instruction in Matlab I can use to get and save Drive Serial Information of an installed hard drive (ex. C:\ drive)? Any suggestion will be helpful!
Thanks in advance
0 件のコメント
採用された回答
Walter Roberson
2022 年 8 月 25 日
S = system('wmic diskdrive get serialNumber')
Though I see some sites say
S = system('wmic bios get serialNumber')
The output is probably going to be two lines, with the first one being a header.
At the moment I do not know what happens if you have multiple drives.
1 件のコメント
その他の回答 (2 件)
Chunru
2022 年 8 月 25 日
For windows machine, you can do the following:
[status, outpyt] = system("wmic diskdrive get model,serialnumber")
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!