How Can I Find My Hard Drive Serial Number?

Updated May 24, 2018

Reported In


  • LabVIEW

Issue Details

I am storing lots of data in external hard drives and I want to make sure I am using the correct hard drive. I also want to make sure the hard drives are not being replaced with out my knowledge.


Using the System Exec VI, you are able to send the command cmd /c vol <>: to return the serial number. For example, to find the serial number of the C Drive on your PC, you could use the follow code:

For a list of serial numbers you could scale the above code to achieve the following: