c# - Uniquely identifying a pendrive -


i working on usb devices , can identify usb device. have theoretical question.is shows usb device portable cd drive or flash drives? nt check possibilities due lack of these hardwares :). there method identify if flash drive or usb device.

please don't beat have tried. googled regarding same because of least experience couldn't find any.

thanks

please use class usbserialnumber

usbserialnumber usb = new usbserialnumber(); string serial = usb.getserialnumberfromdriveletter("f:\"); messagebox.show(serial); 

each pendrive has serial number unique.

you can use class purpose.

download following link:

http://www.cfdan.com/posts/retrieving_non-volatile_usb_serial_number_using_c_sharp.cfm


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -