LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the serial number of the hard disk of my PC

I want to get the serial number of my PC hardisk. Is there any command that I can pass to the System Exec.vi that will give this info.
0 Kudos
Message 1 of 5
(4,412 Views)

I rember this from some time ago. If you use 32 bits system. You will need to do a call to kernel32.dll. And the function is GetVolumeInformationA

http://forums.ni.com/t5/LabVIEW/Call-to-WinAPI-Kernel32-dll-doesn-t-work-in-runtime/m-p/121097 It may do the trick for you



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 2 of 5
(4,401 Views)

On Win, this information should be stored in the registry. So you can read it using the build-in registry functions.

 

Felix

0 Kudos
Message 3 of 5
(4,398 Views)

Whether the volume serial number will be unique ? My requirement is to have a unique identification, of the PC in which I am running my program 

0 Kudos
Message 4 of 5
(4,390 Views)

@COq Rouge wrote:

I rember this from some time ago. If you use 32 bits system. You will need to do a call to kernel32.dll. And the function is GetVolumeInformationA

http://forums.ni.com/t5/LabVIEW/Call-to-WinAPI-Kernel32-dll-doesn-t-work-in-runtime/m-p/121097 It may do the trick for you


Note: its Volume Serial Number, not Hard Drive Serial Number. Obtaining real HDD Serial Number a bit more complicated...

 

Andrey.

0 Kudos
Message 5 of 5
(4,367 Views)