Get Drive Volume information
조회 수: 19 (최근 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!