Re: Disk Volume Serial Number [message #68734] |
Fri, 20 November 2009 10:24 |
jeanh
Messages: 79 Registered: November 2009
|
Member |
|
|
Alexandro Corr�a wrote:
> Hello,
>
> How can I get the "Disk Volume Serial Number" (physical HD's address)
> using IDL?
>
> Thanks,
> Alexandro Corr�a
This would work on Windows:
spawn, 'dir', tmp
VolumeID = tmp[1]
you would need to process the string, which is like
"Volume Serial Number is 2084-DBD5"
Jean
|
|
|
Re: Disk Volume Serial Number [message #68735 is a reply to message #68734] |
Fri, 20 November 2009 09:38  |
b_gom
Messages: 105 Registered: April 2003
|
Senior Member |
|
|
I don't think there is a built-in command for this, so you will need
to use a DLM or CALL_EXTERNAL. Check the ITT user contribution
library. There was some code written for Windows by Lynn McGuire in
2000 that may be useful.
|
|
|