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!