Borrar filtros
Borrar filtros

Get Drive Volume information

16 visualizaciones (últimos 30 días)
Iacopo
Iacopo el 25 de Ag. de 2022
Respondida: Iacopo el 26 de Ag. de 2022
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

Respuesta aceptada

Walter Roberson
Walter Roberson el 25 de Ag. de 2022
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 comentario
Chunru
Chunru el 25 de Ag. de 2022
Editada: Chunru el 25 de Ag. de 2022
It list all drives installed in the system. For my machine, it lists down 4 disks installed.

Iniciar sesión para comentar.

Más respuestas (2)

Chunru
Chunru el 25 de Ag. de 2022
For windows machine, you can do the following:
[status, outpyt] = system("wmic diskdrive get model,serialnumber")

Iacopo
Iacopo el 26 de Ag. de 2022
Thanks everyone! With a small change, what I needed was:
S = system('wmic volume get serialNumber')
Thanks!

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by