From: star-italia on
Hi all, i'd like to know how to get the serial number of a USB drive without using WMI.
Possibly the one that doesn't change when you format your drive.

Thanks in advance
From: dotNetDave on
As far as I know you can't... you have to use WMI.

David

======================================
David McCarter [Microsoft MVP]
www.dotNetTips.com
David McCarter''''s .NET Coding Standards available at:
http://codingstandards.notlong.com


"star-italia" wrote:

> Hi all, i'd like to know how to get the serial number of a USB drive without using WMI.
> Possibly the one that doesn't change when you format your drive.
>
> Thanks in advance
> .
>
From: Colbert Zhou [MSFT] on
Hello,

Here is a nice article about how to get USB serial number in two ways,
1.WMI
2.Windows API
http://www.emmet-gray.com/Articles/USB_SerialNumbers.htm

Obviously that the WMI approach is more straight and easier. So I also
suggest you use the WMI approach.


Best regards,
Ji Zhou
Microsoft Online Community Support

From: star-italia on
Thank you very much. i'll take a look at it

On 27/01/2010 10:52, Colbert Zhou [MSFT] wrote:
> Hello,
>
> Here is a nice article about how to get USB serial number in two ways,
> 1.WMI
> 2.Windows API
> http://www.emmet-gray.com/Articles/USB_SerialNumbers.htm
>
> Obviously that the WMI approach is more straight and easier. So I also
> suggest you use the WMI approach.
>
>
> Best regards,
> Ji Zhou
> Microsoft Online Community Support
>